[ 
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)

Reply via email to