You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kyle Weaver (Jira)" <ji...@apache.org> on 2021/03/23 19:27:00 UTC

[jira] [Created] (BEAM-12042) TVF with no arguments causes ArrayIndexOutOfBoundsException.

Kyle Weaver created BEAM-12042:
----------------------------------

             Summary: TVF with no arguments causes ArrayIndexOutOfBoundsException.
                 Key: BEAM-12042
                 URL: https://issues.apache.org/jira/browse/BEAM-12042
             Project: Beam
          Issue Type: Bug
          Components: dsl-sql-zetasql
            Reporter: Kyle Weaver
            Assignee: Kyle Weaver


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();




--
This message was sent by Atlassian Jira
(v8.3.4#803005)