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

Applying function on window auxiliary function fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.4.0
    • Fix Version/s: 1.3.0, 1.4.0
    • Component/s: Table API & SQL
    • Labels:
      None

      Description

      SQL queries that apply a function or expression on a window auxiliary function (TUMBLE_START, TUMBLE_END, HOP_START, etc). cannot be translated and fail with a CodeGenException:

      Exception in thread "main" org.apache.flink.table.codegen.CodeGenException: Unsupported call: TUMBLE_END
      

      Example query:

      SELECT 
        a, 
        toLong(TUMBLE_END(rowtime, INTERVAL '10' MINUTE)) AS t, 
        COUNT(b) AS cntB
      FROM myTable
      GROUP BY a, TUMBLE(rowtime, INTERVAL '10' MINUTE)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fhueske Fabian Hueske
                Reporter:
                fhueske Fabian Hueske
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: