Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/12801#discussion_r61995863
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
---
@@ -248,6 +248,26 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef]
with Logging {
}
/**
+ * Create a partition range specification map.
+ * Note, we do not support partition range yet. Thus, only support the
partition spec specified
+ * in the following format: partition_column=val
+ */
+ override def visitPartitionRangeSpec(
+ ctx: PartitionRangeSpecContext): Map[String, String] =
withOrigin(ctx) {
+ ctx.partitionRangeVal.asScala.map { pVal =>
+ val operator =
pVal.comparisonOperator().getChild(0).asInstanceOf[TerminalNode]
+ if (operator.getSymbol.getType != SqlBaseParser.EQ) {
--- End diff --
I will revert it. The purpose here is to issue a better exception message
if users specify predicates in alter table drop partition.
---
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]