-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix null coercion of scalars #2172
base: develop
Are you sure you want to change the base?
Conversation
vortex_bail!("Boolean operations are only supported on boolean arrays") | ||
if !lhs.dtype().is_boolean() | ||
|| !rhs.dtype().is_boolean() | ||
|| !lhs.dtype().eq_ignore_nullability(rhs.dtype()) |
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.
nit: could simplify as !matches!(lhs.dtype(), DType::Boolean(_)) || ...
To maximise compatibility with compute engines, Vortex does not perform any implicit type coercion in its compute | ||
functions or expressions. The exception to this is upcasting the nullability of input data types. For example, | ||
it is valid to compare a `u32` and `u32?` array, resulting in a `bool?` array. |
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.
What about list(u32)?
compared to list(u32?)
.
I think this is blocked on #2174 |
Nope.. this seems like it's a DataFusion bug? apache/datafusion#14394 |
Fixes #2171