-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4943][SQL] Allow table name having dot for db/catalog #3941
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
Conversation
|
Can one of the admins verify this patch? |
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.
I think this should probably just be a single rule. With something like: repsep(ident, ",") for the table identifier.
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.
I change it to rep1sep(ident, ".")
|
Thanks for doing this cleanup! Overall I think this looks pretty good. I made a few small comments. One other very minor nit. It seems a little odd to me to be using |
|
Also, can you fix the PR title to avoid truncating. |
|
ok to test |
|
Test build #25340 has started for PR 3941 at commit
|
|
I use IndexedSeq instead Seq for IndexedSeq is faster to access element by lift. I can revert them back to Seq. |
|
Its minor, but it seems unlikely that it it noticeably faster in this instance. |
|
Test build #25340 has finished for PR 3941 at commit
|
|
Test PASSed. |
|
Test build #25356 has started for PR 3941 at commit
|
|
Test build #25356 has finished for PR 3941 at commit
|
|
Test PASSed. |
The pull only fixes the parsing error and changes API to use tableIdentifier. Joining different catalog datasource related change is not done in this pull. Author: Alex Liu <[email protected]> Closes #3941 from alexliu68/SPARK-SQL-4943-3 and squashes the following commits: 343ae27 [Alex Liu] [SPARK-4943][SQL] refactoring according to review 29e5e55 [Alex Liu] [SPARK-4943][SQL] fix failed Hive CTAS tests 6ae77ce [Alex Liu] [SPARK-4943][SQL] fix TestHive matching error 3652997 [Alex Liu] [SPARK-4943][SQL] Allow table name having dot to support db/catalog ... (cherry picked from commit 4b39fd1) Signed-off-by: Michael Armbrust <[email protected]> Conflicts: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateTableAsSelect.scala
|
@alexliu68 Is there any particular reason that |
|
I only change selection to use tableIdentifier for joining tables. I keep createTable no change to minimize API changes. createTable could also use tableIdentifier to create catalog/cluster/database level table, but I leave it for future development if we need it. |
The pull only fixes the parsing error and changes API to use tableIdentifier. Joining different catalog datasource related change is not done in this pull.