Skip to content

Conversation

@geooo109
Copy link
Collaborator

Fixes #6213

@geooo109 geooo109 force-pushed the geooo109/opt_complements branch 2 times, most recently from cb7b8a6 to 2b5f95a Compare November 4, 2025 13:58
@geooo109 geooo109 force-pushed the geooo109/opt_complements branch from 2b5f95a to 34eab11 Compare November 6, 2025 12:39
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to nonnull and let's merge.

Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's include this in the branch that annotates columns:

            if col.type and col.type.args.get("nullable") is False:
                col.meta["nonnull"] = True

To account for clickhouse's non-nullable types.

@georgesittas georgesittas changed the title fix(optimizer)!: simplify connector complements only for literal and null fix(optimizer)!: simplify connector complements only for non-null operands Nov 6, 2025
@georgesittas georgesittas merged commit ddea61d into main Nov 6, 2025
7 checks passed
@georgesittas georgesittas deleted the geooo109/opt_complements branch November 6, 2025 15:40
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.

Invalid optimization for connector complements

3 participants