Description
ORC-629 added custom handling of predicate pushdown on doubles, but the code that was added blindly assumes that double statistics were present in the file which may not have been the case. Here's the snippet of code in question:
} else if (category == TypeDescription.Category.DOUBLE || category == TypeDescription.Category.FLOAT) { DoubleColumnStatistics dstas = (DoubleColumnStatistics) cs;
Elsewhere in the code, there's a type check on the result of statistics deserialization before casting, but here the type checks are missing. It appears this should be checking for DoubleColumnStatistics before assuming the cast will succeed, and if the expected statistics type is not present then the predicate should not be evaluated on that column.