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

ASF GitHub Bot updated SPARK-53718:
-----------------------------------
    Labels: pull-request-available  (was: )

> Add a new Optimizer rule to flatten nested MapConcat expressions
> ----------------------------------------------------------------
>
>                 Key: SPARK-53718
>                 URL: https://issues.apache.org/jira/browse/SPARK-53718
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: shaoqinzhou
>            Priority: Major
>              Labels: pull-request-available
>
> Add a new Optimizer rule to flatten nested MapConcat expressions in two ways:
> 1. Flattens nested MapConcat expressions into a single MapConcat
> Example: 
> {code:java}
> map_concat(map('a', 'a1'), map_concat(map('b', 'b1'), map('c', 'c1'))) → 
> map_concat(map('a', 'a1'), map('b', 'b1'), map('c', 'c1')) {code}
> 2. Extracts the child directly when MapConcat has only one child
> Example:
> {code:java}
> map_concat(map('a', 'a1')) → map('a', 'a1') {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to