Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12251 Rework the Table API & SQL type system
  3. FLINK-13335

Bring the SQL CREATE TABLE DDL closer to FLIP-37

    XMLWordPrintableJSON

Details

    • Hide
      The identifiers "string" and "bytes" are reserved keywords now and will be used for data types in the future. In case of SQL statements with a function, field, or table name, those identifiers need to be enclosed in backticks: `STRING` or `BYTES`.
      Show
      The identifiers "string" and "bytes" are reserved keywords now and will be used for data types in the future. In case of SQL statements with a function, field, or table name, those identifiers need to be enclosed in backticks: `STRING` or `BYTES`.

    Description

      At a first glance it does not seem that the newly introduced DDL is compliant with FLIP-37. We should ensure consistent behavior esp. also for corner cases.

      Update:
      This brings the SQL DDL closer to FLIP-37. However, there are a couple of known limitations.

      Currently unsupported features:

      • INTERVAL
      • ROW with comments
      • ANY
      • NULL
      • NOT NULL/NULL for top-level types
      • ignoring collation/charset
      • VARCHAR without length (=VARCHAR(1))
      • TIMESTAMP WITH TIME ZONE
      • user-defined types
      • data types in non-DDL parts (e.g. CAST(f AS STRING))

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              6 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