Skip to content

Commit

Permalink
Do not allow UserDefinedType for vectorization to fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
c21 committed Mar 27, 2021
1 parent 3bfc03a commit f30cc88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class OrcFileFormat
val conf = sparkSession.sessionState.conf
conf.orcVectorizedReaderEnabled && conf.wholeStageEnabled &&
schema.length <= conf.wholeStageMaxNumFields &&
schema.forall(s => supportDataType(s.dataType)) &&
schema.forall(s => supportDataType(s.dataType) &&
!s.dataType.isInstanceOf[UserDefinedType[_]]) &&
supportBatchForNestedColumn(sparkSession, schema)
}

Expand Down

0 comments on commit f30cc88

Please sign in to comment.