Uh oh!
There was an error while loading. Please reload this page.
[SPARK-43327][CORE][3.3] Trigger committer.setupJob before plan execute in FileFormatWriter#write - #41154
[SPARK-43327][CORE][3.3] Trigger committer.setupJob before plan execute in FileFormatWriter#write#41154zzzzming95 wants to merge 2 commits into
committer.setupJob before plan execute in FileFormatWriter#write#41154Conversation
| } | ||
| } | ||
| test("SPARK-43327: location exists when insertoverwrite fails") { |
There was a problem hiding this comment.
This issue did not occur in the latest master branch, only in Spark3.2 and Spark3.3
committer.setupJob before plan execute in FileFormatWriter#writecommitter.setupJob before plan execute in FileFormatWriter#writecommitter.setupJob before plan execute in FileFormatWriter#writecommitter.setupJob before plan execute in FileFormatWriter#writeHyukjinKwon
commented
May 15, 2023
@zzzzming95 do you know in which PR fixed the issue in master branch? |
The direct reason is because SPARK-37287, It causes' DataWriteingCommandExec 'to be encapsulated in' AdaptiveSparkPlanExec 'and triggers execution in advance. mabay we can just backport |
cloud-fan
commented
Jun 19, 2023
SPARK-37287 is too big to backport |
| sql("create table t1(c2 long) using parquet") | ||
| sql("INSERT OVERWRITE TABLE t1 select 6000044164") | ||
| // spark.sql("CREATE TABLE IF NOT EXISTS t(amt1 int) using ORC") |
zzzzming95
commented
Aug 21, 2023
do you know how to make it run green ? I see all test pass. Or it can merge directly? please take a look , thanks~ |
cloud-fan
commented
Aug 22, 2023
yea all tests passed, let me just merge it. Thanks! |
…cute in `FileFormatWriter#write` ### What changes were proposed in this pull request? Trigger `committer.setupJob` before plan execute in `FileFormatWriter#write` ### Why are the changes needed? In this issue, the case where `outputOrdering` might not work if AQE is enabled has been resolved. #38358 However, since it materializes the AQE plan in advance (triggers getFinalPhysicalPlan) , it may cause the committer.setupJob(job) to not execute When `AdaptiveSparkPlanExec#getFinalPhysicalPlan()` is executed with an error. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? add UT Closes#41154 from zzzzming95/spark3-SPARK-43327. Lead-authored-by: zzzzming95 <505306252@qq.com> Co-authored-by: zhiming she <505306252@qq.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
zzzzming95
commented
Aug 22, 2023
@cloud-fan |
What changes were proposed in this pull request?
Trigger
committer.setupJobbefore plan execute inFileFormatWriter#writeWhy are the changes needed?
In this issue, the case where
outputOrderingmight not work if AQE is enabled has been resolved.#38358
However, since it materializes the AQE plan in advance (triggers getFinalPhysicalPlan) , it may cause the committer.setupJob(job) to not execute When
AdaptiveSparkPlanExec#getFinalPhysicalPlan()is executed with an error.Does this PR introduce any user-facing change?
no
How was this patch tested?
add UT