Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[SPARK-11103][SQL] Disable predicate push down when using merged sche…
…ma for Parquet.
  • Loading branch information
HyukjinKwon committed Oct 28, 2015
commit 85dadbcb458eec1067b6bae838ca930b8d958f4a
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ private[sql] class ParquetRelation(
val assumeBinaryIsString = sqlContext.conf.isParquetBinaryAsString
val assumeInt96IsTimestamp = sqlContext.conf.isParquetINT96AsTimestamp

// When using merged schema and the column of the given filter does not exist, Parquet emits
// an error which is an issue of Parquet (PARQUET-389).
val safeParquetFilterPushDown = !shouldMergeSchemas && parquetFilterPushDown

// Parquet row group size. We will use this value as the value for
// mapreduce.input.fileinputformat.split.minsize and mapred.min.split.size if the value
// of these flags are smaller than the parquet row group size.
Expand All @@ -305,7 +309,7 @@ private[sql] class ParquetRelation(
dataSchema,
parquetBlockSize,
useMetadataCache,
parquetFilterPushDown,
safeParquetFilterPushDown,
assumeBinaryIsString,
assumeInt96IsTimestamp) _

Expand Down