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

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

     [ https://issues.apache.org/jira/browse/BEAM-12042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Knowles updated BEAM-12042:
-----------------------------------
    Status: Open  (was: Triage Needed)

> 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
>            Priority: P2
>
> 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)