Skip to content

MLIR: cut a constant predicate column under a skip and a limit - #804

Merged
rjb32 merged 1 commit into
mainfrom
constant-predicate-skip-limit
Aug 19, 2026
Merged

MLIR: cut a constant predicate column under a skip and a limit#804
rjb32 merged 1 commit into
mainfrom
constant-predicate-skip-limit

Conversation

@rjb32

@rjb32 rjb32 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

A comparison or boolean operation over constants folds to a ColumnConst, so the skip and limit truncates now pick their copy family from the column rather than from the operation, which only recognised arithmetic.

RETURN 1 < 2
RETURN true and false
RETURN 1 < 2 SKIP 0 LIMIT 1
RETURN true and false SKIP 0 LIMIT 1
RETURN not true SKIP 0 LIMIT 1
RETURN 1 < 2 LIMIT 1
RETURN 1 < 2 SKIP 0
RETURN 1 < 2 SKIP 1
RETURN 1 < 2 SKIP 1 LIMIT 1
RETURN true and false SKIP 0 LIMIT 0
RETURN 1 < 2, true and false SKIP 0 LIMIT 1

@rjb32
rjb32 force-pushed the constant-predicate-skip-limit branch from a931473 to 3fa3fb0 Compare August 19, 2026 22:51
@rjb32
rjb32 merged commit 4b6edbd into main Aug 19, 2026
2 checks passed
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