Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #39610 . The non-greedy mode does not work well if the ending class name appears more than once, like file://myPath/.../clsName/.../clsName. We should still use greedy mode, but to match any chars that are not space or comma (comma is used to combine multiple paths in FileIndex.toString).

Why are the changes needed?

make the test framework more stable

Does this PR introduce any user-facing change?

no

How was this patch tested?

N/A

@github-actions github-actions bot added the SQL label Feb 7, 2023
@cloud-fan
Copy link
Contributor Author

cc @LuciferYang @LinhongLiu

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

+1, LGTM

Thanks @cloud-fan

@yaooqinn
Copy link
Member

yaooqinn commented Feb 8, 2023

- explain-aqe.sql *** FAILED *** (989 milliseconds)
[info]   Expected "...t: Parquet, Location[ ][not included in com...", but got "...t: Parquet, Location[: InMemoryFileIndex(1 paths)[file:][not included in com..." Result did not match for query #6

the test failures seem relevant

HyukjinKwon pushed a commit that referenced this pull request Feb 8, 2023
### What changes were proposed in this pull request?

This is a followup of #39610 . The non-greedy mode does not work well if the ending class name appears more than once, like `file://myPath/.../clsName/.../clsName`. We should still use greedy mode, but to match any chars that are not space or comma (comma is used to combine multiple paths in `FileIndex.toString`).

### Why are the changes needed?

make the test framework more stable

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

no

### How was this patch tested?

N/A

Closes #39924 from cloud-fan/minor.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 04550ed)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@HyukjinKwon
Copy link
Member

Merged to master and branch-3.4.

snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
### What changes were proposed in this pull request?

This is a followup of apache#39610 . The non-greedy mode does not work well if the ending class name appears more than once, like `file://myPath/.../clsName/.../clsName`. We should still use greedy mode, but to match any chars that are not space or comma (comma is used to combine multiple paths in `FileIndex.toString`).

### Why are the changes needed?

make the test framework more stable

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

no

### How was this patch tested?

N/A

Closes apache#39924 from cloud-fan/minor.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 04550ed)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

4 participants