Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12801#discussion_r61967761
--- 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 don't think this is worth doing in this patch if we just parse it to
throw an exception. If we decide to support ranged partition specs later we can
add it then, but now this just creates unnecessary code. I would all the parser
changes in this patch.
---
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]