GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/14955
[SPARK-17394][SQL] should not allow specify database in table/view name
after RENAME TO
## What changes were proposed in this pull request?
It's really weird that we allow users to specify database in both from
table name and to table name
in `ALTER TABLE RENAME TO`, as logically we can't support rename a table
to a different database.
Both postgres and MySQL disallow this syntax, it's reasonable to follow
them and simply our code.
## How was this patch tested?
new test in `DDLCommandSuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark rename
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14955.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14955
----
commit 43efac98b93dc32a20296825862c57099819ca36
Author: Wenchen Fan <[email protected]>
Date: 2016-09-04T08:29:09Z
should not allow specify database in table/view name after RENAME TO
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]