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] [Updated] (SAMZA-2575) Flatten udf return an Array after flattening the row as oppose to inner value

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

Slim Bouguerra updated SAMZA-2575:
----------------------------------
    Summary: Flatten udf return an Array after flattening the row as oppose to inner value  (was: Flatten udf return an Array after flattening the row as oppose to cell value.)

> Flatten udf return an Array after flattening the row as oppose to inner 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)