-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Spark OrcFilters instead of the copied one; Comment a test case
- Loading branch information
Chong Gao
committed
Jan 15, 2022
1 parent
de3ef18
commit a5a3168
Showing
6 changed files
with
40 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
.../src/main/scala/org/apache/spark/sql/execution/datasources/rapids/OrcFiltersWrapper.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2022, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.spark.sql.execution.datasources.rapids | ||
|
||
import org.apache.hadoop.hive.ql.io.sarg.SearchArgument | ||
|
||
import org.apache.spark.sql.execution.datasources.orc.OrcFilters | ||
import org.apache.spark.sql.sources.Filter | ||
import org.apache.spark.sql.types.StructType | ||
|
||
// Wrapper for Spark OrcFilters which is in private package | ||
object OrcFiltersWrapper { | ||
def createFilter(schema: StructType, filters: Seq[Filter]): Option[SearchArgument] = { | ||
OrcFilters.createFilter(schema, filters) | ||
} | ||
} |
278 changes: 0 additions & 278 deletions
278
sql-plugin/src/main/scala/org/apache/spark/sql/rapids/OrcFilters.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.