-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back to CPU for try_cast in Spark 3.4.0 [databricks] (#8179)
* Fall back to CPU for try_cast in Spark 3.4.0 Signed-off-by: Andy Grove <andygrove@nvidia.com> * Refactor * specific tests for 320 and 340 * update test * update copyright year * fix 31x shim * refactor and fix failure in 330db * Update integration_tests/src/main/python/cast_test.py Co-authored-by: Navin Kumar <97137715+NVnavkumar@users.noreply.github.com> * update test for db 11.3 * fix imports, rename test * remove redundant code * address feedback * simplify code * revert changes to pytest * update skipif * rename test * fix another test error * revert changes to Spark340PlusShims --------- Signed-off-by: Andy Grove <andygrove@nvidia.com> Co-authored-by: Navin Kumar <97137715+NVnavkumar@users.noreply.github.com>
- Loading branch information
1 parent
bb8f474
commit 8703289
Showing
8 changed files
with
97 additions
and
17 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
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
31 changes: 31 additions & 0 deletions
31
sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuEvalMode.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,31 @@ | ||
/* | ||
* Copyright (c) 2023, NVIDIA CORPORATION. | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 com.nvidia.spark.rapids | ||
|
||
/** | ||
* Expression evaluation modes. | ||
* - LEGACY: the default evaluation mode, which is compliant to Hive SQL. | ||
* - ANSI: a evaluation mode which is compliant to ANSI SQL standard. | ||
* - TRY: a evaluation mode for `try_*` functions. It is identical to ANSI evaluation mode | ||
* except for returning null result on errors. | ||
*/ | ||
object GpuEvalMode extends Enumeration { | ||
val LEGACY, ANSI, TRY = Value | ||
} |
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
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
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
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
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