Skip to content

fix(render): preserve NOT in negated NULL predicates - #16

Open
Sivadheeraj5356 wants to merge 2 commits into
mindsdb:mainfrom
Sivadheeraj5356:patch-1
Open

Sivadheeraj5356 wants to merge 2 commits into
mindsdb:mainfrom
Sivadheeraj5356:patch-1

Conversation

@Sivadheeraj5356

Copy link
Copy Markdown

Fixes mindsdb/mindshub#12491.

Use bare sa.null() for NULL right operands of IS / IS NOT so SQLAlchemy preserves predicate inversion. Adds regression coverage for negated and plain NULL checks.

Testing: the new test fails before the fix and passes after it. Renderer suite: 16 passed, 1 pre-existing skip. Broader suites weren't run because they require full handler dependencies.

…ates

Handle SQLAlchemy NULL conditions in expressions.
Add a test to ensure NOT IS NULL predicates render correctly.
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Sivadheeraj5356

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: SqlalchemyRender silently drops NOT on IS [NOT] NULL predicates — wrong query results across all SqlalchemyRender-based integrations

1 participant