Commit a99d6e0
[KYUUBI #7422] [KSHC] Fix FileWriterFactory using the same TaskAttemptId for different task attempts
### Why are the changes needed?
Port SPARK-48484 to KSHC.
Fix #7421. In the KSHC, `FileWriterFactory` is forked from
Spark's `org.apache.spark.sql.execution.datasources.v2.FileWriterFactory`. However, it still contains a
bug later fixed on the Spark side by apache/spark#46811. This PR ports that upstream fix to KSHC.
### How was this patch tested?
UT
### Was this patch authored or co-authored using generative AI tooling?
NO
Closes #7422 from maomaodev/kyuubi-7421.
Closes #7422
1272f87 [lifumao] [KSHC] Fix FileWriterFactory using the same TaskAttemptId for different task attempts
Authored-by: lifumao <lifumao@tencent.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>1 parent 100446c commit a99d6e0
3 files changed
Lines changed: 59 additions & 3 deletions
File tree
- extensions/spark/kyuubi-spark-connector-hive
- src
- main/scala/org/apache/kyuubi/spark/connector/hive/write
- test/scala/org/apache/kyuubi/spark/connector/hive/write
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments