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

Watermark generation check TIMESTAMP_WITHOUT_TIME_ZONE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.11.1
    • None
    • Table SQL / Planner
    • None

    Description

       

       

       def generateWatermarkGenerator(
            config: TableConfig,
            inputType: RowType,
            watermarkExpr: RexNode): GeneratedWatermarkGenerator = {
          // validation
          val watermarkOutputType = FlinkTypeFactory.toLogicalType(watermarkExpr.getType)
          if (watermarkOutputType.getTypeRoot != LogicalTypeRoot.TIMESTAMP_WITHOUT_TIME_ZONE) {
            throw new CodeGenException(
              "WatermarkGenerator only accepts output data type of TIMESTAMP," +
                " but is " + watermarkOutputType)
          }
      

       

      Why does watermark generation need to be detected as TIMESTAMP_WITHOUT_TIME_ZONE?

      If I remove this check, what effect will it have on the watermark?

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            wxmimperio wxmimperio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: