Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24403 Improve behaviour of CAST
  3. FLINK-25341

Improve casting STRUCTURED type to STRING

    XMLWordPrintableJSON

Details

    Description

      Structured types currently use ROW to STRING logic. However, this is not very useful for users as the field order might be determined by Flink. Also, structured types has the nice property of defining a custom toString and attribute names.

      I would suggest the following:

      If the structured type has a StructuredType.getImplementationClass convert to external class and call toString.

      If no implementation class is present or the toString is not possible, use the string representation of maps.

      Attachments

        Issue Links

          Activity

            People

              slinkydeveloper Francesco Guardiani
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: