Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20787 Improve the Table API to solve user friction
  3. FLINK-19038

It doesn't support to call Table.limit() continuously

    XMLWordPrintableJSON

Details

    Description

      For example, table.limit(3).limit(2) will failed with "FETCH is already defined."

      org.apache.flink.table.api.ValidationException: FETCH is already defined.
      
      	at org.apache.flink.table.operations.utils.SortOperationFactory.validateAndGetChildSort(SortOperationFactory.java:125)
      	at org.apache.flink.table.operations.utils.SortOperationFactory.createLimitWithFetch(SortOperationFactory.java:105)
      	at org.apache.flink.table.operations.utils.OperationTreeBuilder.limitWithFetch(OperationTreeBuilder.java:418)
      

      However, as we support to call table.limit() without specifying the order, I guess this should be a valid usage and should be allowed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dian.fu Dian Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: