L. C. Hsieh created SPARK-49352:
-----------------------------------

             Summary: Avoid redundant array transform for identical expression
                 Key: SPARK-49352
                 URL: https://issues.apache.org/jira/browse/SPARK-49352
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: L. C. Hsieh


Our customer encounters significant performance regression when migrating from 
Spark 3.2 to Spark 3.4 on a `Insert Into` query which is analyzed as a 
`AppendData` on an Iceberg table.

We found that the root cause is in Spark 3.4, `TableOutputResolver` resolves 
the query with additional `ArrayTransform` on an `ArrayType` field. The 
`ArrayTransform`'s lambda function is actually an identical function, i.e., the 
transformation is redundant.



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