LuciferYang commented on a change in pull request #30670:
URL: https://github.com/apache/spark/pull/30670#discussion_r538201926



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileTable.scala
##########
@@ -77,11 +77,19 @@ abstract class FileTable(
     }
   }
 
+  lazy val dataSchema: StructType = {
+    StructType(fileSchema.filterNot(partitionSchema.contains))

Review comment:
       should we consider `caseSensitive` option as line 106 ~ line 109:
   ```
   val fields = fileSchema.fields.filterNot { field =>
       val colName = PartitioningUtils.getColName(field, caseSensitive)
       partitionNameSet.contains(colName)
   }
   
   ```




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to