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:05:00 UTC

[jira] [Created] (SAMZA-2575) Flatten udf return an Array after flattening the row as oppose to cell value.

Slim Bouguerra created SAMZA-2575:
-------------------------------------

             Summary: 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


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)