We don't have an option to create a database only if it doesn't exist in the Metastore Server. So this PR creates the create_database_if_not_exists method, simulating this behavior.
What? :wrench:
add method create_database_if_not_exists and tests
Type of change :file_cabinet:
[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update
How everything was tested? :straight_ruler:
Unit tests + manual test with server
Checklist :memo:
[X] I have added labels to distinguish the type of pull request.
[X] My code follows the style guidelines of this project (docstrings, type hinting and linter compliance);
[X] I have performed a self-review of my own code;
[X] I have made corresponding changes to the documentation;
[X] I have added tests that prove my fix is effective or that my feature works;
[X] I have made sure that new and existing unit tests pass locally with my changes;
Why? :open_book:
We don't have an option to create a database only if it doesn't exist in the Metastore Server. So this PR creates the create_database_if_not_exists method, simulating this behavior.
What? :wrench:
create_database_if_not_exists
and testsType of change :file_cabinet:
How everything was tested? :straight_ruler:
Unit tests + manual test with server
Checklist :memo: