Skip to content

Commit 757b82a

Browse files
committed
remove duplicated check in hive orc
1 parent d4b4d13 commit 757b82a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class OrcFileFormat extends FileFormat with DataSourceRegister with Serializable
7272
job: Job,
7373
options: Map[String, String],
7474
dataSchema: StructType): OutputWriterFactory = {
75-
DataSourceUtils.verifyWriteSchema(this, dataSchema)
7675

7776
val orcOptions = new OrcOptions(options, sparkSession.sessionState.conf)
7877

@@ -123,7 +122,6 @@ class OrcFileFormat extends FileFormat with DataSourceRegister with Serializable
123122
filters: Seq[Filter],
124123
options: Map[String, String],
125124
hadoopConf: Configuration): (PartitionedFile) => Iterator[InternalRow] = {
126-
DataSourceUtils.verifyReadSchema(this, dataSchema)
127125

128126
if (sparkSession.sessionState.conf.orcFilterPushDown) {
129127
// Sets pushed predicates

0 commit comments

Comments
 (0)