Commit c237522
[KYUUBI #7369] KSHC support the PURGE TABLE
### Why are the changes needed?
1. Support `DROP TABLE ... PURGE` syntax in KSHC, so users can explicitly purge table data.
2. Add a compatibility configuration `spark.sql.kyuubi.hive.connector.dropTableAsPurgeTable` (default: false) in KSHC. When set to true, `DROP TABLE` behaves like `PURGE`— data is removed immediately and HDFS Trash is bypassed (preserving the previous behavior). When set to false, `DROP TABLE` will move table data to the HDFS Trash instead.
### How was this patch tested?
1. unit test
4. Manually test
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #7370 from maomaodev/kyuubi-7369.
Closes #7369
db989d1 [lifumao] Revert "change code"
cbb70e0 [lifumao] change code
7ad375f [lifumao] change style code
fd2c6ae [lifumao] change code
18a7207 [lifumao] add migration guide
971f000 [lifumao] KSHC support the PURGE TABLE
f6ef135 [lifumao] KSHC support the PURGE TABLE
Authored-by: lifumao <lifumao@tencent.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>1 parent e0e822d commit c237522
4 files changed
Lines changed: 33 additions & 2 deletions
File tree
- docs/deployment
- extensions/spark/kyuubi-spark-connector-hive/src
- main/scala/org/apache/kyuubi/spark/connector/hive
- test/scala/org/apache/kyuubi/spark/connector/hive
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
396 | 406 | | |
397 | 407 | | |
398 | 408 | | |
399 | 409 | | |
400 | 410 | | |
401 | 411 | | |
402 | | - | |
| 412 | + | |
403 | 413 | | |
404 | 414 | | |
405 | 415 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
224 | 236 | | |
225 | 237 | | |
226 | 238 | | |
| |||
0 commit comments