Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip the test for spark versions 3.1.1, 3.1.2 and 3.2.0 only [databricks] #4491

Merged
merged 3 commits into from
Jan 11, 2022

Conversation

razajafri
Copy link
Collaborator

The fix was posted for 3.1.3+ and 3.2.1+ which makes the bug valid only in version 3.1.1, 3.1.2 and 3.2.0

Fixes #4488

Signed-off-by: Raza Jafri rjafri@nvidia.com

Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@razajafri razajafri self-assigned this Jan 10, 2022
@razajafri razajafri changed the title Skip the test for spark versions 3.1.1, 3.1.2 and 3.2.0 only Skip the test for spark versions 3.1.1, 3.1.2 and 3.2.0 only [databricks] Jan 10, 2022
Copy link
Member

@jlowe jlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expected to see a change to Spark31XShims to have isCastingStringToNegDecimalScaleSupported return false, but it's not here. I don't see how the spark311 and spark312 shims are picking up the changes to mark them properly.

integration_tests/src/main/python/spark_session.py Outdated Show resolved Hide resolved
@jlowe jlowe added this to the Jan 10 - Jan 28 milestone Jan 10, 2022
@tgravescs
Copy link
Collaborator

31xShim already has it set to false:
https://github.com/NVIDIA/spark-rapids/blob/branch-22.02/sql-plugin/src/main/311until320-nondb/scala/com/nvidia/spark/rapids/shims/v2/Spark31XShims.scala#L546

I believe you can remove it from Spark330Shims as well now.

integration_tests/src/main/python/spark_session.py Outdated Show resolved Hide resolved
@@ -129,5 +129,5 @@ trait Spark31XdbShimsBase extends SparkShims {

override def shouldFallbackOnAnsiTimestamp(): Boolean = false

override def isCastingStringToNegDecimalScaleSupported: Boolean = true
override def isCastingStringToNegDecimalScaleSupported: Boolean = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does seem a bit dangerous in the sense if we add a databricks 3.1.3 shim we could easily miss this.
perhaps at least put a comment here. I assume the test won't fail if we get it wrong?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test isn't skipped for 3.1.3, it will blow up saying part of the plan isn't columnar as there is a check in GpuCast for it if we forget to override it for Spark-3.1.3-db.

I can move this to Spark312dbShims.

@razajafri
Copy link
Collaborator Author

I expected to see a change to Spark31XShims to have isCastingStringToNegDecimalScaleSupported return false, but it's not here. I don't see how the spark311 and spark312 shims are picking up the changes to mark them properly.

It's already there in the Spark31XShims https://github.com/razajafri/spark-rapids-1/blob/9e601d639caafef010e33717a7e46f82dd2c92e5/sql-plugin/src/main/311until320-nondb/scala/com/nvidia/spark/rapids/shims/v2/Spark31XShims.scala#L546. That should cover it?

Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@razajafri
Copy link
Collaborator Author

build

tgravescs
tgravescs previously approved these changes Jan 10, 2022
jlowe
jlowe previously approved these changes Jan 10, 2022
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@razajafri razajafri dismissed stale reviews from jlowe and tgravescs via 8df3529 January 11, 2022 00:03
@razajafri
Copy link
Collaborator Author

build

@sameerz sameerz added test Only impacts tests task Work required that improves the product but is not user facing and removed test Only impacts tests labels Jan 11, 2022
@jlowe jlowe merged commit 5785589 into NVIDIA:branch-22.02 Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] isCastingStringToNegDecimalScaleSupported seems set wrong for some Spark versions
4 participants