Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ object FileSourceStrategy extends Strategy with PredicateHelper with Logging {
val requiredExpressions: Seq[NamedExpression] = filterAttributes.toSeq ++ projects
val requiredAttributes = AttributeSet(requiredExpressions)

val readDataColumns = dataColumns
val readDataColumns = dataColumnsWithoutPartitionCols
.filter(requiredAttributes.contains)
.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 and specify a matcher for that.
Expand Down