You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/25 17:56:00 UTC

[jira] [Work logged] (BEAM-11849) Support ARRAY_CONCAT_AGG fn for Zetasql dialect

     [ https://issues.apache.org/jira/browse/BEAM-11849?focusedWorklogId=558052&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-558052 ]

ASF GitHub Bot logged work on BEAM-11849:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Feb/21 17:55
            Start Date: 25/Feb/21 17:55
    Worklog Time Spent: 10m 
      Work Description: ibzib commented on a change in pull request #14035:
URL: https://github.com/apache/beam/pull/14035#discussion_r583044780



##########
File path: sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/SqlOperators.java
##########
@@ -91,6 +92,12 @@
           x -> createTypeFactory().createArrayType(x.getOperandType(0), -1),
           new UdafImpl<>(new ArrayAgg.ArrayAggArray()));
 
+  public static final SqlOperator ARRAY_CONCAT_AGG_FN =
+      createUdafOperator(
+          "array_concat_agg",
+          x -> createTypeFactory().createArrayType(x.getOperandType(0), -1),

Review comment:
       I'm pretty sure the problem is with this line here. The return type is supposed to be ARRAY<BIGINT>, but the type returned here is ARRAY<ARRAY<BIGINT>>. I'm guessing it's because `x.getOperandType(0)` is an array type. Instead it should be the type of elements inside `x.getOperandType(0)`. (I'm not sure exactly what the method is to get that, but you should be able to figure it out using the debugger.)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 558052)
    Remaining Estimate: 0h
            Time Spent: 10m

> Support ARRAY_CONCAT_AGG fn for Zetasql dialect
> -----------------------------------------------
>
>                 Key: BEAM-11849
>                 URL: https://issues.apache.org/jira/browse/BEAM-11849
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql-zetasql
>            Reporter: Sonam Ramchand
>            Priority: P2
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




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