XMLWordPrintableJSON

Details

    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

        1. logical_type_casts.patch
          3 kB
          Francesco Guardiani
        2. cast_function_it_case.patch
          8 kB
          Francesco Guardiani

        Issue Links

          Activity

            People

              slinkydeveloper Francesco Guardiani
              slinkydeveloper Francesco Guardiani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: