Skip to content

Conversation

@dtenedor
Copy link
Contributor

@dtenedor dtenedor commented Apr 3, 2024

What changes were proposed in this pull request?

This PR adds a unit test to ensure that the fields of the LogKey enumeration are sorted alphabetically, as specified by https://issues.apache.org/jira/browse/SPARK-47705.

Why are the changes needed?

This will make sure that the fields of the enumeration remain easy to read in the future as we add more cases.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

This PR adds testing coverage only.

Was this patch authored or co-authored using generative AI tooling?

GitHub copilot offered some suggestions, but I rejected them

@dtenedor
Copy link
Contributor Author

dtenedor commented Apr 3, 2024

cc @gengliangwang

@github-actions github-actions bot added the CORE label Apr 3, 2024
@gengliangwang
Copy link
Member

@dtenedor on second thought, could you move the new file under https://github.com/apache/spark/tree/master/common/utils/src/test/scala/org/apache/spark/util ?
Note:The test suite will extend AnyFunSuite instead of SparkFunSuite

@github-actions github-actions bot removed the CORE label Apr 3, 2024
@dtenedor
Copy link
Contributor Author

dtenedor commented Apr 3, 2024

@dtenedor on second thought, could you move the new file under https://github.com/apache/spark/tree/master/common/utils/src/test/scala/org/apache/spark/util ?
Note:The test suite will extend AnyFunSuite instead of SparkFunSuite

👍 @gengliangwang this is done.

@gengliangwang
Copy link
Member

Verified the new test passes on my local.
Merging to master.

gengliangwang pushed a commit that referenced this pull request Apr 4, 2024
… test to ensure it

### What changes were proposed in this pull request?
The pr aims to fix bug about #45857

### Why are the changes needed?
In fact, `LogKey.values.toSeq.sorted` did not sort alphabetically as expected.

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

### How was this patch tested?
- Pass GA.
- Manually test.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #45864 from panbingkun/fix_sort_logkey.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants