We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e1e53 commit 5c95cefCopy full SHA for 5c95cef
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/ColumnStats.scala
@@ -328,10 +328,10 @@ private[columnar] final class ObjectColumnStats(dataType: DataType) extends Colu
328
protected var lower: Any = null
329
330
val columnType = ColumnType(dataType)
331
- val ordering = if (RowOrdering.isOrderable(dataType)) {
332
- Option(TypeUtils.getInterpretedOrdering(dataType))
333
- } else {
334
- None
+ val ordering = dataType match {
+ case x if RowOrdering.isOrderable(dataType) && x != NullType =>
+ Option(TypeUtils.getInterpretedOrdering(x))
+ case _ => None
335
}
336
337
override def gatherStats(row: InternalRow, ordinal: Int): Unit = {
0 commit comments