Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12042

TVF with no arguments causes ArrayIndexOutOfBoundsException.

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.29.0
    • dsl-sql-zetasql
    • None

    Description

      Line where exception is thrown:
      https://github.com/apache/beam/blob/0c01636fc8610414859d946cb93eabc904123fc8/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/TVFScanConverter.java#L55

      Example query:

      CREATE TABLE FUNCTION CustomerRange()
      AS
      SELECT 1 as id
      UNION ALL
      SELECT 3 as id
      UNION ALL
      SELECT 4 as id
      UNION ALL
      SELECT 5 as id;
      SELECT id FROM CustomerRange();

      Attachments

        Issue Links

          Activity

            People

              ibzib Kyle Weaver
              ibzib Kyle Weaver
              Votes:
              0 Vote for this issue
              Watchers:
              1 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