Skip to content

Conversation

@kazuyukitanimura
Copy link
Contributor

What changes were proposed in this pull request?

|PARTITION (ds='2008-04-09', hr='12') LOCATION '${partDir1.toURI.toString}'

It should be partDir2 instead of partDir1. Looks like it is a copy paste bug.

Why are the changes needed?

Due to this test bug, the drop command was dropping a wrong (partDir1) underlying file in the test.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added extra underlying file location check.

@github-actions github-actions bot added the SQL label Apr 5, 2022
@kazuyukitanimura
Copy link
Contributor Author

cc @MaxGekk @HyukjinKwon @sunchao

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @kazuyukitanimura !

@sunchao sunchao closed this in a6b04f0 Apr 6, 2022
@sunchao
Copy link
Member

sunchao commented Apr 6, 2022

Committed to master, thanks.

dongjoon-hyun pushed a commit that referenced this pull request May 9, 2022
…dd/drop partition command'

### What changes were proposed in this pull request?
https://github.com/apache/spark/blob/cbffc12f90e45d33e651e38cf886d7ab4bcf96da/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala#L979
It should be `partDir2` instead of `partDir1`. Looks like it is a copy paste bug.

### Why are the changes needed?
Due to this test bug, the drop command was dropping a wrong (`partDir1`) underlying file in the test.

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

### How was this patch tested?
Added extra underlying file location check.

Closes #36075 from kazuyukitanimura/SPARK-38786.

Authored-by: Kazuyuki Tanimura <[email protected]>
Signed-off-by: Chao Sun <[email protected]>
(cherry picked from commit a6b04f0)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented May 9, 2022

Thank you, @kazuyukitanimura , @sunchao , @huaxingao . Since the original bug was introduced at SPARK-33770 and was backported to old branches, I'll test and backport this to branch-3.3/3.2/3.1 too.

@dongjoon-hyun
Copy link
Member

cc @MaxGekk

dongjoon-hyun pushed a commit that referenced this pull request May 9, 2022
…dd/drop partition command'

### What changes were proposed in this pull request?
https://github.com/apache/spark/blob/cbffc12f90e45d33e651e38cf886d7ab4bcf96da/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala#L979
It should be `partDir2` instead of `partDir1`. Looks like it is a copy paste bug.

### Why are the changes needed?
Due to this test bug, the drop command was dropping a wrong (`partDir1`) underlying file in the test.

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

### How was this patch tested?
Added extra underlying file location check.

Closes #36075 from kazuyukitanimura/SPARK-38786.

Authored-by: Kazuyuki Tanimura <[email protected]>
Signed-off-by: Chao Sun <[email protected]>
(cherry picked from commit a6b04f0)
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit a52a245)
Signed-off-by: Dongjoon Hyun <[email protected]>
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM2

dongjoon-hyun pushed a commit that referenced this pull request May 9, 2022
…dd/drop partition command'

### What changes were proposed in this pull request?
https://github.com/apache/spark/blob/cbffc12f90e45d33e651e38cf886d7ab4bcf96da/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala#L979
It should be `partDir2` instead of `partDir1`. Looks like it is a copy paste bug.

### Why are the changes needed?
Due to this test bug, the drop command was dropping a wrong (`partDir1`) underlying file in the test.

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

### How was this patch tested?
Added extra underlying file location check.

Closes #36075 from kazuyukitanimura/SPARK-38786.

Authored-by: Kazuyuki Tanimura <[email protected]>
Signed-off-by: Chao Sun <[email protected]>
(cherry picked from commit a6b04f0)
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit a52a245)
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 04161ac)
Signed-off-by: Dongjoon Hyun <[email protected]>
kazuyukitanimura added a commit to kazuyukitanimura/spark that referenced this pull request Aug 10, 2022
…dd/drop partition command' (apache#1385)

### What changes were proposed in this pull request?
https://github.com/apache/spark/blob/cbffc12f90e45d33e651e38cf886d7ab4bcf96da/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala#L979
It should be `partDir2` instead of `partDir1`. Looks like it is a copy paste bug.

### Why are the changes needed?
Due to this test bug, the drop command was dropping a wrong (`partDir1`) underlying file in the test.

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

### How was this patch tested?
Added extra underlying file location check.

Closes apache#36075 from kazuyukitanimura/SPARK-38786.

Authored-by: Kazuyuki Tanimura <[email protected]>
Signed-off-by: Chao Sun <[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.

5 participants