-
Notifications
You must be signed in to change notification settings - Fork 28k
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-5264][SQL] Support drop temporary table [if exists]
DDL command
#4060
Conversation
9d5053d
to
df5d929
Compare
ok to test |
Test build #26108 has finished for PR 4060 at commit
|
1e47f8a
to
dc1c9a0
Compare
Test build #26143 has finished for PR 4060 at commit
|
Test build #26144 has finished for PR 4060 at commit
|
drop table
DDL commanddrop temporary table [if exists]
DDL command
drop temporary table [if exists]
DDL commanddrop temporary table [if exists]
DDL command
e6f836b
to
43ae1da
Compare
Hi, @liancheng |
/cc @marmbrus |
Test build #26306 has finished for PR 4060 at commit
|
Test build #26309 has finished for PR 4060 at commit
|
Test build #26311 has finished for PR 4060 at commit
|
(DROP ~> TEMPORARY.? <~ TABLE) ~ (IF ~ EXISTS).? ~ ident ^^ { | ||
case temp ~ exists ~ tableName => DropTable(tableName, exists.nonEmpty, temp.nonEmpty) | ||
} | ||
) |
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.
Please omit the parenthesis. We only need it for something like this:
lazy val someRule =
( branchA
| branchB
| branchC
)
998eb3b
to
6787059
Compare
Test build #26505 has finished for PR 4060 at commit
|
Test build #26507 has finished for PR 4060 at commit
|
Updated. |
Test build #26517 has finished for PR 4060 at commit
|
import org.apache.spark.sql.types._ | ||
import org.apache.spark.sql.sources.{DropTable => LogicalDropTable} |
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.
The convention when referencing ambiguous names is to do sources.DropTable
.
Test build #26764 has finished for PR 4060 at commit
|
yeah, I use a single logical operator here. try { |
isExists: Boolean, | ||
temporary: Boolean) extends Command | ||
|
||
private[sql] case class DropTempTable( |
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.
Spell out temporary here.
Thanks for working on this! Please merge with master and eliminate conflicts. |
Thanks again for working on this. However, to keep the PR queue small, I propose we close this issue until you have time to update it. |
Can one of the admins verify this patch? |
OK, Thanks! |
DROP [TEMPORARY] TABLE [IF EXISTS] tbl_name
Also, refer to http://dev.mysql.com/doc/refman/5.0/en/drop-table.html