-
Notifications
You must be signed in to change notification settings - Fork 15
Issue 5639 - Cast aggregation results back to correct type #5687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Issue 5639 - Cast aggregation results back to correct type #5687
Conversation
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
…s-the-type-of-integer-fields
|
|
||
| impl PartialEq for NonNullable { | ||
| fn eq(&self, other: &Self) -> bool { | ||
| Arc::ptr_eq(&self.inner, &other.inner) && self.func_name == other.func_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like equal NonNullables won't always point to the same inner implementation. In the AggregateUDFImpl implementation there's a simplify method that clones the inner function.
What is the implication of this? Why does it need a PartialEq or Eq implementation?
Is it worth adding a comment to explain this if it's needed?
|
|
||
| /// A UDF for performing primitive casting, but without producing errors if a narrowing conversion | ||
| /// would be outside the target type's range. Casts are performed in the "standard" way, i.e. truncating | ||
| /// upper bits on a narrowing conversion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can we explain why this is necessary in the comment? We could link to the original issue.
| "| 6 | 66 |", | ||
| "+------+------+", | ||
| ]; | ||
| assert_batches_neq!(expected, &frame.collect().await?); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we assert what actually comes back here? We could explain what's wrong with it in a comment?
…s-the-type-of-integer-fields
Make sure you have checked all steps below.
Issue
Feature". Note that before an issue is finished, you can still make a pull request by raising a separate issue
for your progress.
Tests
Documentation
separate issue for that below.