Skip to content

Conversation

@panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Nov 6, 2022

What changes were proposed in this pull request?

This PR aims to test the error classes, include:

  1. DEFAULT_DATABASE_NOT_EXISTS
  2. INDEX_ALREADY_EXISTS
  3. INDEX_NOT_FOUND
  4. ROUTINE_NOT_FOUND

Why are the changes needed?

The changes improve the error framework.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  1. Add new UT.
  2. Update existed UT.
  3. Pass GA.

…INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND
@github-actions github-actions bot added the SQL label Nov 6, 2022
@panbingkun panbingkun changed the title [WIP][SQL][TESTS] Test the error class: DEFAULT_DATABASE_NOT_EXISTS, INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND [SPARK-41022][SQL][TESTS] Test the error class: DEFAULT_DATABASE_NOT_EXISTS, INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND Nov 6, 2022
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

LGTM in general. Please, fix the coding style issue.

exception = intercept[NoSuchTempFunctionException] {
catalog.dropTempFunction("func1", ignoreIfNotExists = false)
},
errorClass = "ROUTINE_NOT_FOUND",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
errorClass = "ROUTINE_NOT_FOUND",
errorClass = "ROUTINE_NOT_FOUND",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

…EXISTS, INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND
…EXISTS, INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND
@MaxGekk
Copy link
Member

MaxGekk commented Nov 6, 2022

+1, LGTM. Merging to master.
Thank you, @panbingkun.

@MaxGekk MaxGekk closed this in f9bc04e Nov 6, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…EXISTS, INDEX_ALREADY_EXISTS, INDEX_NOT_FOUND, ROUTINE_NOT_FOUND

### What changes were proposed in this pull request?
This PR aims to test the error classes, include:
1. DEFAULT_DATABASE_NOT_EXISTS
2. INDEX_ALREADY_EXISTS
3. INDEX_NOT_FOUND
4. ROUTINE_NOT_FOUND

### Why are the changes needed?
The changes improve the error framework.

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

### How was this patch tested?
1. Add new UT.
2. Update existed UT.
3. Pass GA.

Closes apache#38522 from panbingkun/index_test.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[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.

3 participants