-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-7179][SQL]add tablenamepattern to hive sql of "show tables" #6745
Conversation
@@ -65,7 +65,7 @@ private[sql] class SparkSQLParser(fallback: String => LogicalPlan) extends Abstr | |||
protected val TABLES = Keyword("TABLES") | |||
protected val UNCACHE = Keyword("UNCACHE") | |||
|
|||
override protected lazy val start: Parser[LogicalPlan] = cache | uncache | set | show | others | |||
override protected lazy val start: Parser[LogicalPlan] = cache ||| uncache ||| set ||| show ||| others |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100 columns exceeded.
Test build #34597 has finished for PR 6745 at commit
|
|
||
private lazy val showInHive: Parser[LogicalPlan] = | ||
SHOW ~ TABLES ~> (IN ~> ident).? ~ opt(stringLit) ^^ { | ||
case dbName ~ reg => ShowTablesCommand(dbName, reg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Please rename reg
to regexPattern
.
This change generally looks good except for some styling issues. Thanks for working on this! |
@liancheng thank you for review this PR, had modify the style :) |
Test build #34661 has finished for PR 6745 at commit
|
Test build #34667 has finished for PR 6745 at commit
|
@baishuo @liancheng any updates on this? Is this patch still active? |
hi @andrewor14 @liancheng , This patch didnt pass some test. And I didnt find way to resolve it :) |
the whole hive sql grammar of "show tables " is like "show tables [in databasename] [tablenamepattern]", "show tables [in databasename]" is already implement at spark sql component, and this PR implement "show tables [in databasename] tablenamepattern" at spark hive component