Skip to Main Content
InterSystems Ideas

Have an idea, suggestion, or something that doesn’t work as expected in InterSystems products or services? Share it here on the InterSystems Ideas Portal.

The Ideas Portal is where community members can propose improvements, report bugs, and help influence the product roadmap across InterSystems products and the overall developer experience. 22% of submitted ideas are implemented by InterSystems or members of the Developer Community.

💡 Ideas and bugs are both welcome, no matter how big or small. You can submit feature requests, usability improvements, workflow suggestions, and bug reports. Whether you’re an experienced expert or just getting started, your fresh perspective is valuable.

🛠️ About bugs and fixes. If you have access to InterSystems WRC, please submit bugs there for immediate action. Bug reports submitted through the Ideas Portal are reviewed and tracked, but do not guarantee immediate resolution.

Start by sharing what could be better - the community and our teams will help take it from there.

Status Done by Community
Created by Dmitry Maslennikov
Created on Jul 7, 2025

Integrate InterSystems IRIS with SQLancer for Automated SQL Testing and Validation

SQLancer is a tool to automatically test Database Management Systems (DBMSs) in order to find bugs in their implementation. That is, it finds bugs in the code of the DBMS implementation, rather than in queries written by the user. SQLancer has found hundreds of bugs in mature and widely-known DBMSs.

1️⃣ Description of the Idea

Support SQLancer as a fuzz testing framework for InterSystems IRIS SQL engine. SQLancer (SQL Testing via Stochastic Generation) is an automated testing tool developed to uncover logic bugs in SQL database management systems by generating random SQL queries and checking for inconsistencies across execution paths.

This idea proposes:

  • Developing a SQLancer backend for InterSystems IRIS

  • Contributing it either to the upstream SQLancer repo or as a standalone extension

  • Using it as part of IRIS internal CI pipelines, especially during query planner and optimizer testing


2️⃣ Who is the Target Audience?

  • InterSystems core product engineering and QA teams

  • Advanced developers and partners building tools on top of the IRIS SQL engine

  • Researchers and database enthusiasts experimenting with IRIS

  • Hackathon participants who want to test edge cases of IRIS query behavior


3️⃣ What Problem Does It Solve?

Testing SQL engines is notoriously hard due to:

  • Complex combinations of query structures, indexes, joins, constraints

  • Rare edge cases that only appear in deep optimizer logic or query plans

SQLancer solves this by generating thousands of complex random queries that systematically reveal bugs, such as:

  • Incorrect result sets

  • Crashes

  • Inconsistent plans for logically equivalent queries

By integrating IRIS into SQLancer:

  • Bugs are caught early and reproducibly

  • Confidence in the SQL optimizer, query planner, and execution engine increases

  • Helps benchmark IRIS behavior against other databases in open testing environments


4️⃣ How Does This Impact Efficiency, Stability, Reliability, etc.?

  • Stability: Automated regression tests reduce chance of bugs escaping to production

  • Reliability: Ensures the SQL engine behaves correctly under complex, unpredictable conditions

  • Efficiency: Speeds up validation during optimizer or SQL engine changes

  • Security: Detects cases that could cause resource exhaustion or crashes


5️⃣ Use Case / Scenario

Suppose the InterSystems engineering team is working on a new SQL optimizer enhancement that rewrites certain joins. Normally, verifying correctness would require large, manually curated test sets.

By plugging IRIS into SQLancer:

  • Thousands of valid, random SQL queries are generated against synthetic schemas

  • The engine’s results are automatically validated for logical consistency

  • Any unexpected error, mismatch, or crash is logged with a minimal reproduction case

  • The team can run this continuously during development or CI/CD

This leads to faster innovation, safer releases, and higher trust in the SQL engine’s correctness.

  • ADMIN RESPONSE
    Dec 26, 2025

    Thank you for submitting the idea.

    This idea was implemented by Developer Community member(s). Please check the solution in the comments.

  • Admin
    Irene Mikhailova
    Dec 26, 2025

    @Guest thank you for implementing this idea.

    🖥 Download Dmitry's app here: sqlancer-iris