Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #41348 . Previously V2SessionCatalog.dropTable treated null table as table not exists, but #41348 broke it. This PR fixes it.

Why are the changes needed?

to keep old behavior.

Does this PR introduce any user-facing change?

No

How was this patch tested?

existing tests

@github-actions github-actions bot added the SQL label Jul 18, 2023
@yaooqinn yaooqinn closed this in 704131b Jul 18, 2023
yaooqinn pushed a commit that referenced this pull request Jul 18, 2023
… null table

### What changes were proposed in this pull request?

This is a followup of #41348 . Previously `V2SessionCatalog.dropTable` treated null table as table not exists, but #41348 broke it. This PR fixes it.

### Why are the changes needed?

to keep old behavior.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

existing tests

Closes #42056 from cloud-fan/mm.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
(cherry picked from commit 704131b)
Signed-off-by: Kent Yao <[email protected]>
@yaooqinn
Copy link
Member

Merged to master and 3.5

Hisoka-X pushed a commit to Hisoka-X/spark that referenced this pull request Jul 26, 2023
… null table

### What changes were proposed in this pull request?

This is a followup of apache#41348 . Previously `V2SessionCatalog.dropTable` treated null table as table not exists, but apache#41348 broke it. This PR fixes it.

### Why are the changes needed?

to keep old behavior.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

existing tests

Closes apache#42056 from cloud-fan/mm.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
(cherry picked from commit 704131b)
Hisoka-X pushed a commit to Hisoka-X/spark that referenced this pull request Aug 29, 2023
… null table

### What changes were proposed in this pull request?

This is a followup of apache#41348 . Previously `V2SessionCatalog.dropTable` treated null table as table not exists, but apache#41348 broke it. This PR fixes it.

### Why are the changes needed?

to keep old behavior.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

existing tests

Closes apache#42056 from cloud-fan/mm.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
(cherry picked from commit 704131b)
dongjoon-hyun pushed a commit that referenced this pull request Sep 8, 2023
### What changes were proposed in this pull request?
cherry pick #41348 and #42056 , this a bug fixed should be included in 3.4.2

### Why are the changes needed?
Fix DROP table behavior in session catalog

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Tested by:
- V2 table catalog tests: `org.apache.spark.sql.execution.command.v2.DropTableSuite`
- V1 table catalog tests: `org.apache.spark.sql.execution.command.v1.DropTableSuiteBase`

Closes #41765 from Hisoka-X/move_drop_table_v2_to_3.4.2.

Lead-authored-by: Jia Fan <[email protected]>
Co-authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
viirya pushed a commit to viirya/spark-1 that referenced this pull request Oct 19, 2023
… null table

### What changes were proposed in this pull request?

This is a followup of apache#41348 . Previously `V2SessionCatalog.dropTable` treated null table as table not exists, but apache#41348 broke it. This PR fixes it.

### Why are the changes needed?

to keep old behavior.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

existing tests

Closes apache#42056 from cloud-fan/mm.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants