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

First parameter of ROW() function must be constant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.13.1
    • None
    • Table SQL / Client
    • None

    Description

      We found the first parameter passed of ROW() function must be constant, it cannot be a variable or a function and reports error otherwise. The example is as below.

      Flink SQL> select ROW(now(), 0));
      [ERROR] Could not execute SQL statement. Reason:
      org.apache.flink.sql.parser.impl.ParseException: Encountered "(" at line 1, column 15.
      Was expecting one of:
          ")" ...
          "," ...
      

      If we change the query to be following, it works fine.

      select ROW(0, now())

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              okowr Fu Kai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: