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

Show tables statement support name like syntax #128

Closed
jiacai2050 opened this issue Jul 22, 2022 · 6 comments · Fixed by #331
Closed

Show tables statement support name like syntax #128

jiacai2050 opened this issue Jul 22, 2022 · 6 comments · Fixed by #331
Assignees
Labels
A-SQL Area: SQL layer feature New feature or request good first issue Good for newcomers

Comments

@jiacai2050
Copy link
Contributor

jiacai2050 commented Jul 22, 2022

Description

Currently, show tables is supported by CeresDB, it would be convenient to support name like syntax like in MySQL.

SHOW TABLES LIKE 'pattern'

Proposal

Support this syntax with reference with MySQL

Additional context

Currently it will return error below

ref #154

@jiacai2050 jiacai2050 added feature New feature or request A-SQL Area: SQL layer good first issue Good for newcomers labels Jul 22, 2022
@QuintinTao
Copy link
Contributor

hi, I wonder that we need to support "SHOW TABLES LIKE 'pattern'" or "SHOW TABLES name LIKE '01_system_table1'"?
Is the name esential?

@jiacai2050
Copy link
Contributor Author

SHOW TABLES LIKE 'pattern'

This style is preferred.

@QuintinTao
Copy link
Contributor

Thanks I want to try it.

@jiacai2050
Copy link
Contributor Author

Thanks, go ahead.

Feel free to ask questions if you have any problems.

@jiacai2050
Copy link
Contributor Author

There are two special chars in pattern

  • _ to match any single character and
  • % to match an arbitrary number of characters (including zero characters).

We can replace _ to . and % to .* to match regex syntax.

@QuintinTao
Copy link
Contributor

There are two special chars in pattern

  • _ to match any single character and
  • % to match an arbitrary number of characters (including zero characters).

We can replace _ to . and % to .* to match regex syntax.

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-SQL Area: SQL layer feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants