Skip to content
Snippets Groups Projects
Commit 1e8fbefa authored by gatorsmile's avatar gatorsmile
Browse files

[SPARK-18594][SQL] Name Validation of Databases/Tables


### What changes were proposed in this pull request?
Currently, the name validation checks are limited to table creation. It is enfored by Analyzer rule: `PreWriteCheck`.

However, table renaming and database creation have the same issues. It makes more sense to do the checks in `SessionCatalog`. This PR is to add it into `SessionCatalog`.

### How was this patch tested?
Added test cases

Author: gatorsmile <gatorsmile@gmail.com>

Closes #16018 from gatorsmile/nameValidate.

(cherry picked from commit 07f32c22)
Signed-off-by: default avatargatorsmile <gatorsmile@gmail.com>
parent 9c549572
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment