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

Incorrect Scala example for Table Function

    XMLWordPrintableJSON

    Details

      Description

      Issue in Scala example in documentation: https://ci.apache.org/projects/flink/flink-docs-release-1.7/dev/table/udfs.html#table-functions

      Currently it is:

      tableEnv.sqlQuery("SELECT a, word, length FROM MyTable LEFT JOIN TABLE(split(a)) as T(word, length) ON TRUE")
      

      Should be (like in Java version):

      tableEnv.sqlQuery("SELECT a, word, length FROM MyTable LEFT JOIN LATERAL TABLE(split(a)) as T(word, length) ON TRUE")

      LATERAL is missed in Scala version

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                winipanda TANG Wen-hui
                Reporter:
                dfakhritdinov Denys Fakhritdinov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m