Skip to content

Commit

Permalink
Add override getParquetFilters for shim 304 (#2963)
Browse files Browse the repository at this point in the history
* Add override getParquetFilters for shim 304

Signed-off-by: Peixin Li <pxli@nyu.edu>

* fix brace
  • Loading branch information
pxLi authored Jul 19, 2021
1 parent 6b80995 commit 345cd70
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ package com.nvidia.spark.rapids.shims.spark304
import com.nvidia.spark.rapids.ShimVersion
import com.nvidia.spark.rapids.shims.spark303.Spark303Shims
import com.nvidia.spark.rapids.spark303.RapidsShuffleManager
import org.apache.parquet.schema.MessageType

import org.apache.spark.sql.execution.datasources.parquet.ParquetFilters
import org.apache.spark.sql.internal.SQLConf

class Spark304Shims extends Spark303Shims {

Expand All @@ -27,4 +31,16 @@ class Spark304Shims extends Spark303Shims {
override def getRapidsShuffleManagerClass: String = {
classOf[RapidsShuffleManager].getCanonicalName
}

override def getParquetFilters(
schema: MessageType,
pushDownDate: Boolean,
pushDownTimestamp: Boolean,
pushDownDecimal: Boolean,
pushDownStartWith: Boolean,
pushDownInFilterThreshold: Int,
caseSensitive: Boolean,
datetimeRebaseMode: SQLConf.LegacyBehaviorPolicy.Value): ParquetFilters =
new ParquetFilters(schema, pushDownDate, pushDownTimestamp, pushDownDecimal, pushDownStartWith,
pushDownInFilterThreshold, caseSensitive, datetimeRebaseMode)
}

0 comments on commit 345cd70

Please sign in to comment.