rdblue commented on a change in pull request #27728: [SPARK-17636][SQL] Nested
Column Predicate Pushdown for Parquet
URL: https://github.com/apache/spark/pull/27728#discussion_r386594772
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/CatalogV2Implicits.scala
##########
@@ -132,4 +132,9 @@ private[sql] object CatalogV2Implicits {
part
}
}
+
+ def unqote(input: String): Seq[String] = {
+ // TODO: Handle the column name contains `dot` properly
+ input.split('.')
Review comment:
You can copy how this is done in
[`LogicalExpressions`](https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/connector/expressions/expressions.scala#L32-L34).
```scala
val parser = new CatalystSqlParser(SQLConf.get)
val nameParts = parser.parseMultipartIdentifier(name)
```
You can also use the `parseReference` method if you want to get a
`FieldReference`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]