-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support Union
as a function
#10206
Comments
I would like to work on this. |
As I mentioned here #7845 (comment), the most useful thing for me would be less ugly errors when you do try to compare a union with something else. Also it would be good to be able to force people to cast unions in my case, so it would be nice if we could switch off @vaibhawvipul if you're working on this, you might be interested in my logic in |
This was helpful @samuelcolvin. Thank you. My approach is similar -
|
take |
I opened a PR that adds support for Union datatype on sqlparser which I hope can help here. If so, some review would be very appreciated, since sqlparser-rs dev-bandwith is a bit limited. Thanks 🙏 |
Is your feature request related to a problem or challenge?
We have recently issues show that it is time to support
Union
#10161 #10139
ScalarValue::iter_to_array
#10180
comparison_coercion
I think the first step is able to create
Union
in slt file.Describe the solution you'd like
Follow DuckDB
Union
or others well-known system.https://duckdb.org/docs/sql/data_types/union.html
First step might be able to create table with union type
Describe alternatives you've considered
No response
Additional context
ScalarUDFImpl
The text was updated successfully, but these errors were encountered: