SusurHe commented on issue #5487:
URL: https://github.com/apache/iceberg/issues/5487#issuecomment-1214560889
@kbendick Just a basic SQL statement, like:
``` sql
MERGE INTO t1 a
USING (select * from t2) b
ON a.id = b.id
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT * ;
```
I think it should be because this code in
`extendeddistributionandorderingutils` leads to get `initialpartitionnum` for
partitioning; So, we should crop `finalnumpartitions` here;
``` scala
val finalNumPartitions = if (numPartitions > 0) {
numPartitions
} else {
// This line of code may lead to the direct acquisition of
initialpartitionnum, resulting in too many partitions
conf.numShufflePartitions
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]