jayzhan211 commented on issue #10180:
URL: https://github.com/apache/datafusion/issues/10180#issuecomment-2074900564
> The main requirement I have now is that the error when you do try to
compare a union is more helpful and less ugly.
Do you mean the error message in `comparision_coerion`?
```
called `Result::unwrap()` on an `Err` value: Plan("Cannot infer common
argument type for comparison operation Union([(0, Field { name: \"null\",
data_type: Boolean, nullable: true, dict_id: 0, dict_is_ordered: false,
metadata: {} }), (1, Field { name: \"bool\", data_type: Boolean, nullable:
false, dict_id: 0, dict_is_ordered: false, metadata: {} }), (2, Field { name:
\"int\", data_type: Int64, nullable: false, dict_id: 0, dict_is_ordered: false,
metadata: {} }), (3, Field { name: \"float\", data_type: Float64, nullable:
false, dict_id: 0, dict_is_ordered: false, metadata: {} }), (4, Field { name:
\"string\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered:
false, metadata: {} }), (5, Field { name: \"array\", data_type: Utf8, nullable:
false, dict_id: 0, dict_is_ordered: false, metadata: {} }), (6, Field { name:
\"object\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered:
false, metadata: {} })], Sparse) = Int64")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]