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-43881][SQL][PYTHON][CONNECT] Add optional pattern for Catalog.listDatabases #41421

Closed
wants to merge 2 commits into from

Conversation

beliefer
Copy link
Contributor

@beliefer beliefer commented Jun 1, 2023

What changes were proposed in this pull request?

Currently, the syntax SHOW [NAMESPACES | DATABASES | SCHEMAS] LIKE pattern supports an optional pattern, so as filtered out the expected databases.
But the Catalog.listDatabases missing the function both in Catalog API and Connect Catalog API.

In fact, the optional pattern is very useful.

Why are the changes needed?

This PR want add the optional pattern for Catalog.listDatabases.

Does this PR introduce any user-facing change?

'No'.
New feature.

How was this patch tested?

New test cases.

@beliefer
Copy link
Contributor Author

beliefer commented Jun 3, 2023

@HyukjinKwon
Copy link
Member

Merged to master.

@beliefer
Copy link
Contributor Author

beliefer commented Jun 5, 2023

@HyukjinKwon Thank you.

czxm pushed a commit to czxm/spark that referenced this pull request Jun 12, 2023
…listDatabases

### What changes were proposed in this pull request?
Currently, the syntax `SHOW [NAMESPACES | DATABASES | SCHEMAS] LIKE pattern` supports an optional pattern, so as filtered out the expected databases.
But the `Catalog.listDatabases` missing the function both in Catalog API and Connect Catalog API.

In fact, the optional pattern is very useful.

### Why are the changes needed?
This PR want add the optional pattern for `Catalog.listDatabases`.

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

### How was this patch tested?
New test cases.

Closes apache#41421 from beliefer/SPARK-43881.

Authored-by: Jiaan Geng <beliefer@163.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
2 participants