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

unify the logic of time attribute derivation for both batch and streaming

    XMLWordPrintableJSON

Details

    Description

      Currently, the logic of time attribute derivation is different for batch and streaming. For batch table source, the rowtime type will not be generated or will be erased as regular time type if the source table has rowtime type. To handle this difference, we have to distinguish batch or streaming via isStreamingMode flag in many places, such as: DatabaseCalciteSchema, CatalogSchemaTable, CatalogTableSchemaResolver, etc. In fact, batch queries may also need rowtime type, such as supporting rowtime temporal join. So we can unify the logic of time attribute derivation from the source side, and erase the rowtime type if need in optimization phase. And then it's easier to push the unified TableEnvironment and planner forward.

      Attachments

        Activity

          People

            Unassigned Unassigned
            godfreyhe godfrey he
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: