gengliangwang 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_r385929469
##########
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:
How about pass the schema or top-level output attributes as a parameter, and
judge if the filter is of a nested column.
----------------------------------------------------------------
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]