Skip to content

fix: infer SQL predicate output types - #713

Merged
chio-labs-delivery[bot] merged 1 commit into
mainfrom
fix/infer-boolean-predicates
Sep 18, 2026
Merged

chio-labs-delivery[bot] merged 1 commit into
mainfrom
fix/infer-boolean-predicates

Conversation

@kvlonge

@kvlonge kvlonge commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Why

SQL predicate expressions such as column IS NOT NULL could remain untyped even though their output type is deterministically Boolean. IS NULL predicates were also not recognized as non-null values.

Changes

  • infer Boolean output types for comparison and predicate expression kinds
  • infer IS NULL and IS NOT NULL outputs as non-null
  • add focused output inference coverage

Verification

  • focused SQL analysis tests: 72 passed
  • Ruff and Ty checks passed for touched files
  • Fensu passed
  • uv sync --all-extras
  • make check-ci
  • public-repository hygiene scan
  • cache-free static compile of the downstream 974-model project with the affected analysis boundary enabled: 0 errors, 0 warnings

@chio-labs-delivery
chio-labs-delivery Bot enabled auto-merge (squash) September 18, 2026 00:37
@chio-labs-delivery
chio-labs-delivery Bot merged commit 072b7f1 into main Sep 18, 2026
18 checks passed
@chio-labs-delivery
chio-labs-delivery Bot deleted the fix/infer-boolean-predicates branch September 18, 2026 00:48
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.

1 participant