dbtsai commented on a change in pull request #27728: [SPARK-17636][SQL] Nested
Field Predicate Pushdown for Parquet
URL: https://github.com/apache/spark/pull/27728#discussion_r385941478
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/sources/filters.scala
##########
@@ -40,6 +40,14 @@ sealed abstract class Filter {
case f: Filter => f.references
case _ => Array.empty
}
+
+ /**
+ * If any of the references of this filter contains nested field
+ * @since 3.2.0
+ */
+ def containNestedField: Boolean = {
+ this.references.exists(_.contains("."))
Review comment:
This is a quick implementation. I plan to write a parser to parse nested
column name.
For example, `a.b` is a nested field while
```
`a.b`
```
is a field name containing `dot`. WDYT?
----------------------------------------------------------------
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]