Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Right now we have all the casting rules for collection, structured and raw types to string, that is we have logic to stringify the following types:
- ARRAY
- MAP
- MULTISET
- ROW
- STRUCTURED
- RAW
Unfortunately these don't work, for different reasons, notably:
- We need to support these combinations in LogicalTypeCasts (check the attached patch)
- For some of them Calcite applies its casting validation logic and marks them as invalid
- For MULTISET and STRUCTURED, there are issues specific to Table API and its expression stack, which cannot correctly convert the values to literal
You can check all these errors by applying the attached patch to the cast function it cases.
We need to fix these issues, so users can use SQL and Table API to cast these values to string.
Attachments
Attachments
Issue Links
- links to