Skip to content

Conversation

@killme2008
Copy link

@killme2008 killme2008 changed the base branch from main to v0.54.x April 22, 2025 21:03
@killme2008 killme2008 requested a review from waynexia April 22, 2025 21:04
@killme2008 killme2008 force-pushed the feature/fix-range-align-missing-error branch from 590e7a2 to 0afc2c2 Compare April 22, 2025 21:10
Comment on lines +10517 to +10520
if name.value.as_str() == "range_fn" {
let FunctionArguments::List(args) = &func.args else {
unreachable!()
};
Copy link

Choose a reason for hiding this comment

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

Can we ensure this is unreachable? If not, can we return an error here?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, we can.

Copy link

Choose a reason for hiding this comment

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

We may use if-let or add a safety note that mentions which place ensures this.

@waynexia waynexia merged commit 0cf6c04 into v0.54.x Apr 25, 2025
6 of 18 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.

Improve Error Message for RANGE Queries in SQL

3 participants