imback82 commented on a change in pull request #25247: [SPARK-28319][SQL]
Implement SHOW TABLES for Data Source V2 Tables
URL: https://github.com/apache/spark/pull/25247#discussion_r309839275
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
##########
@@ -723,6 +723,21 @@ class DDLParserSuite extends AnalysisTest {
assert(exc.getMessage.contains("INSERT INTO ... IF NOT EXISTS"))
}
+ test("show tables") {
+ comparePlans(
+ parsePlan("SHOW TABLES"),
+ ShowTablesStatement(None, None))
+ comparePlans(
+ parsePlan("SHOW TABLES FROM testcat.ns1.ns2.tbl"),
+ ShowTablesStatement(Some(Seq("testcat", "ns1", "ns2", "tbl")), None))
+ comparePlans(
+ parsePlan("SHOW TABLES IN testcat.ns1.ns2.tbl"),
+ ShowTablesStatement(Some(Seq("testcat", "ns1", "ns2", "tbl")), None))
+ comparePlans(
+ parsePlan("SHOW TABLES IN tbl LIKE '*dog*'"),
Review comment:
I think it's `*`:
https://github.com/apache/spark/blob/607fb879060f8e620d74017ff3fd8c8c737cdbab/sql/core/src/test/resources/sql-tests/inputs/show-tables.sql#L16
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]