olaky commented on code in PR #39408:
URL: https://github.com/apache/spark/pull/39408#discussion_r1069358007
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala:
##########
@@ -214,9 +214,20 @@ object FileSourceStrategy extends Strategy with
PredicateHelper with Logging {
.filterNot(partitionColumns.contains)
// Metadata attributes are part of a column of type struct up to this
point. Here we extract
- // this column from the schema.
+ // this column from the schema and specify a matcher for that.
+ object MetadataStructColumn {
+ def unapply(attributeReference: AttributeReference):
Option[AttributeReference] = {
Review Comment:
Unfortunately we require the exprId towards the end of the function
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]