You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Slim Bouguerra (Jira)" <ji...@apache.org> on 2020/08/04 18:18:00 UTC
[jira] [Commented] (SAMZA-2575) Flatten udf return an Array after
flattening the row as oppose to cell value.
[ https://issues.apache.org/jira/browse/SAMZA-2575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17171021#comment-17171021 ]
Slim Bouguerra commented on SAMZA-2575:
---------------------------------------
[https://github.com/apache/samza/pull/1409/files]
> Flatten udf return an Array after flattening the row as oppose to cell value.
> -----------------------------------------------------------------------------
>
> Key: SAMZA-2575
> URL: https://issues.apache.org/jira/browse/SAMZA-2575
> Project: Samza
> Issue Type: Bug
> Reporter: Slim Bouguerra
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Main usage of flatten udf is to map the current row as a dot product of all the row and the values of the List column to be flattened.
> User expecting that after the flatten the content of the Target Array column to be the inner field and not an Array that wraps a single element.
>
> Take example of
> {code:java}
> SELECT FLATTEN(ARRYA[1,2]), 'value' form table;
> -- expected result is
> 1,value
> 2,value
> -- current result is
> [1],value
> [2],value
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)