Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-44268][CORE][TEST] Add tests to ensure error-classes.json and docs are in sync #41813

Closed

Conversation

Hisoka-X
Copy link
Member

@Hisoka-X Hisoka-X commented Jul 1, 2023

What changes were proposed in this pull request?

Add new test to make sure to error-classes.json are match with series of sql-error-conditions.md.
After this PR, any difference between error-classes.json and document with report a error during test.
Note: only compare error class name at now.

Also fix all different which be found by new test case.

Why are the changes needed?

Make sure our error-classes.json always sync with doc.

Does this PR introduce any user-facing change?

No

How was this patch tested?

new test.

@Hisoka-X
Copy link
Member Author

Hisoka-X commented Jul 1, 2023

@MaxGekk
Copy link
Member

MaxGekk commented Jul 2, 2023

+1, LGTM. Merging to master.
Thank you, @Hisoka-X.

@MaxGekk MaxGekk closed this in b557f57 Jul 2, 2023
@Hisoka-X
Copy link
Member Author

Hisoka-X commented Jul 3, 2023

Thanks @MaxGekk

@Hisoka-X Hisoka-X deleted the SPARK-44268_sync_error_classes_to_doc branch July 3, 2023 01:17
@beliefer
Copy link
Contributor

beliefer commented Jul 3, 2023

@Hisoka-X How to sync the error classes to doc ? manual ?

@Hisoka-X
Copy link
Member Author

Hisoka-X commented Jul 3, 2023

@Hisoka-X How to sync the error classes to doc ? manual ?

At now, yes. Developer only need change doc which had change in error-classes.json.
I'm trying to add new tool to generate doc automatic.

HyukjinKwon pushed a commit that referenced this pull request Jul 3, 2023
…E_ARGUMENTS` error into doc

### What changes were proposed in this pull request?
This is a followup PR for #41750, because we add test for sync doc and `error-classes.json` after #41813 . We should add `TABLE_VALUED_FUNCTION_TOO_MANY_TABLE_ARGUMENTS` (add on #41750) into doc.

### Why are the changes needed?
sync error and doc

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

### How was this patch tested?
exist test.

Closes #41827 from Hisoka-X/SPARK-44200_follow_up_error_json_doc.

Authored-by: Jia Fan <fanjiaeminem@qq.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon added a commit that referenced this pull request Jul 6, 2023
… doc

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

This is a followup PR for #41623, because we add test for sync doc and `error-classes.json` after #41813 . We should add `INVALID_BITMAP_POSITION` (add on #41623) into doc.

### Why are the changes needed?

CI fails without this PR.

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

### How was this patch tested?
Existing test.

Closes #41870 from HyukjinKwon/SPARK-44154.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon pushed a commit that referenced this pull request Jul 7, 2023
…onditions` doc automatic

### What changes were proposed in this pull request?
This is a follow up PR for #41813, change test to automatic generate `sql-error-conditions` doc. Like other GOLDEN_FILES test, if the doc not match will report a error during test.

### Why are the changes needed?
1. make sure the `error-classes.json` sync with doc
2. and developer sync doc easier.

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

### How was this patch tested?
add new test.

Closes #41865 from Hisoka-X/SPARK-44268_error_json_follow_up.

Authored-by: Jia Fan <fanjiaeminem@qq.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
ragnarok56 pushed a commit to ragnarok56/spark that referenced this pull request Mar 2, 2024
… doc

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

This is a followup PR for apache#41623, because we add test for sync doc and `error-classes.json` after apache#41813 . We should add `INVALID_BITMAP_POSITION` (add on apache#41623) into doc.

### Why are the changes needed?

CI fails without this PR.

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

### How was this patch tested?
Existing test.

Closes apache#41870 from HyukjinKwon/SPARK-44154.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
ragnarok56 pushed a commit to ragnarok56/spark that referenced this pull request Mar 2, 2024
…onditions` doc automatic

### What changes were proposed in this pull request?
This is a follow up PR for apache#41813, change test to automatic generate `sql-error-conditions` doc. Like other GOLDEN_FILES test, if the doc not match will report a error during test.

### Why are the changes needed?
1. make sure the `error-classes.json` sync with doc
2. and developer sync doc easier.

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

### How was this patch tested?
add new test.

Closes apache#41865 from Hisoka-X/SPARK-44268_error_json_follow_up.

Authored-by: Jia Fan <fanjiaeminem@qq.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants