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

FLIP-164: Improve Schema Handling in Catalogs

    XMLWordPrintableJSON

Details

    Description

      Schema information is necessary at different locations in the Table API for defining tables and/or views. In particular, it is necessary to define the schema in a programmatic DDL (FLIP-129) and when converting a DataStream to a Table (FLIP-136).

      We need similar APIs in the Catalog interfaces such that catalog implementations can define table/views in a unified way.

      This FLIP updates the class hierarchy to achieve the following goals:

      • make it visible whether a schema is resolved or unresolved and when the resolution happens
      • offer a unified API for FLIP-129, FLIP-136, and catalogs
      • allow arbitrary data types and expressions in the schema for watermark spec or columns
      • have access to other catalogs for declaring a data type or expression via CatalogManager
      • cleaned up TableSchema
      • remain backwards compatible in the persisted properties and API

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: