Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14644 Improve the usability of connector properties
  3. FLINK-14645

Data types defined in DDL will lose precision and nullability when converting to properties

    XMLWordPrintableJSON

Details

    • Hide
      The TableSchema derived from properties now bridges to the default conversion class, i.e. LocalDateTime/LocalDate/LocalTime, instead of java.sql.Timestamp/Date/Time. All the connectors consume/produce the java.sql.Timestamp/Date/Time classes should adapt to the new conversion classes.
      Show
      The TableSchema derived from properties now bridges to the default conversion class, i.e. LocalDateTime/LocalDate/LocalTime, instead of java.sql.Timestamp/Date/Time. All the connectors consume/produce the java.sql.Timestamp/Date/Time classes should adapt to the new conversion classes.

    Description

      Currently, data types defined in DDL will be converted to TypeInformation and use TypeStringUtils to serialize/deserialize which will lose the precision and nullablitiy information.

      We can use LogicalType#asSerializableString and LogicalTypeParser to serialize/deserialize data types which keeps all the information. But we need to figure out how to keep compability with previous versions.

      Attachments

        Issue Links

          Activity

            People

              jark Jark Wu
              jark Jark Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 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