Skip to content

fix: support bitwise shift SQL expressions - #8388

Merged
wjones127 merged 3 commits into
mainfrom
gatekeeper/fix-3524-1
Aug 19, 2026
Merged

fix: support bitwise shift SQL expressions#8388
wjones127 merged 3 commits into
mainfrom
gatekeeper/fix-3524-1

Conversation

@lance-gatefixer

Copy link
Copy Markdown
Contributor

Summary

  • enable SQL bitwise shift parsing in the Lance dialect
  • translate left and right shift operators into DataFusion expressions
  • cover UInt64 parsing and evaluation with regression tests

Root cause

The custom Lance SQL dialect wrapped GenericDialect but inherited the Dialect trait default that disables bitwise shift operators. Once parsing is enabled, the Lance planner also needs explicit mappings for the resulting sqlparser shift operators.

Validation

  • cargo test -p lance-datafusion
  • cargo fmt --all -- --check
  • cargo clippy --all --tests --benches -- -D warnings

Fixes #3524

@github-actions github-actions Bot added A-deps Dependency updates bug Something isn't working labels Aug 7, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@Xuanwo Xuanwo added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 10, 2026
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

# Conflicts:
#	rust/lance-datafusion/Cargo.toml
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 13, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 13, 2026
…er/fix-3524-1

# Conflicts:
#	rust/lance-datafusion/Cargo.toml
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 14, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Gate recommendation: approve.

The latest merge from main preserves parser and planner support for both shift directions while retaining the optional datagen feature setup. Focused UInt64 coverage still exercises both operators through physical evaluation.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 14, 2026
@wjones127
wjones127 self-requested a review August 19, 2026 21:16
@wjones127
wjones127 merged commit feafb24 into main Aug 19, 2026
39 checks passed
@wjones127
wjones127 deleted the gatekeeper/fix-3524-1 branch August 19, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Dependency updates bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: incomplete sql parser: No infix parser for token ShiftRight

2 participants