Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15161

Introduce TypeTransformation interface and basic transformations

    XMLWordPrintableJSON

    Details

      Description

      Currently, the default DataType derived from properties is the default conversion now. However, some connectors/formats are still using sql Timestamp. But bridging DataType into sql Timestamp is not simple, because DataType is nested. So we propose to introduce a TypeTransformation which transform one data type to another, this is also a useful tool for FLIP-65.

      The proposal including:

      • Remove CallContext from the exiting TypeTransformation.
      • add a package o.a.f.table.types.inference.transforms
      • add commonly used transform classes there, e.g. timeToSqlTypes
      • add a class `o.a.f.table.types.inference.TypeTransforms` for listing all available transforms

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jark Jark Wu
                Reporter:
                jark Jark Wu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m