Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Spark] Support 3-part naming in table identifier parsing
-Spark - [ ] Standalone - [ ] Flink - [ ] Kernel - [ ] Other (fill in here) Support 3-part naming in table identifier parsing. Before the changes, the following command ``` OPTIMIZE catalog_foo.db.tbl ``` will throw error ``` org.apache.spark.sql.delta.DeltaParseException: Illegal table name catalog_foo.db.tbl(line 1, pos 9) == SQL == optimize catalog_foo.db.tbl ---------^^^ at io.delta.sql.parser.DeltaSqlAstBuilder.$anonfun$visitTableIdentifier$1(DeltaSqlParser.scala:430) at org.apache.spark.sql.catalyst.parser.ParserUtils$.withOrigin(ParserUtils.scala:160) at io.delta.sql.parser.DeltaSqlAstBuilder.visitTableIdentifier(DeltaSqlParser.scala:427) at io.delta.sql.parser.DeltaSqlAstBuilder.$anonfun$visitOptimizeTable$5(DeltaSqlParser.scala:348) at scala.Option.map(Option.scala:230) at io.delta.sql.parser.DeltaSqlAstBuilder.$anonfun$visitOptimizeTable$1(DeltaSqlParser.scala:348) ``` After the changes, the command works. A new unit test No Closes #1985 Signed-off-by: Venki Korukanti <venki.korukanti@databricks.com> GitOrigin-RevId: dd297a9d8e77a6fdfafb834c74a915de1aeae737
- Loading branch information