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

Added in fallback tests #174

Merged
merged 4 commits into from
Jun 15, 2020
Merged

Added in fallback tests #174

merged 4 commits into from
Jun 15, 2020

Conversation

revans2
Copy link
Collaborator

@revans2 revans2 commented Jun 15, 2020

This closes #167

We use Spark's metrics callback to capture the plan after the GPU session has run so we can verify that it did fall back as expected. With this I found a test that was not falling back any more, because the underlying problem was fixed that it was testing for.

@revans2 revans2 requested a review from kuhushukla June 15, 2020 17:07
@revans2
Copy link
Collaborator Author

revans2 commented Jun 15, 2020

ok to test

@revans2
Copy link
Collaborator Author

revans2 commented Jun 15, 2020

build

Copy link
Collaborator

@kuhushukla kuhushukla left a comment

Choose a reason for hiding this comment

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

Overall looks great , just a couple minor comments for your perusal.

incompat: Boolean = false,
execsAllowedNonGpu: Seq[String] = Seq.empty,
sortBeforeRepart: Boolean = false)
(fun: DataFrame => DataFrame): Unit = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might need to fix the scalastyle per
For method declarations, use 4 space indentation for their parameters and put each in each line when the parameters don't fit in two lines. Return types can be either on the same line as the last parameter, or start a new line with 2 space indent.

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 scala style check passes for this. Not sure where the issue is?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry , I am looking at https://github.com/databricks/scala-style-guide#indent and I see the 4 indents and newline pattern used in Spark code base per this guideline as well.

shuffle-plugin/pom.xml Show resolved Hide resolved
integration_tests/src/main/python/asserts.py Show resolved Hide resolved
def runOnCpuAndGpuWithCapture(
df: SparkSession => DataFrame,
fun: DataFrame => DataFrame,
conf: SparkConf = new SparkConf(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit : indent seems off to me

@revans2
Copy link
Collaborator Author

revans2 commented Jun 15, 2020

build

@revans2
Copy link
Collaborator Author

revans2 commented Jun 15, 2020

build

@kuhushukla
Copy link
Collaborator

Approved pending green CI.

@revans2 revans2 self-assigned this Jun 15, 2020
@revans2 revans2 added the test Only impacts tests label Jun 15, 2020
@revans2 revans2 merged commit 472fdf8 into NVIDIA:branch-0.1 Jun 15, 2020
@revans2 revans2 deleted the fallback-tests branch June 15, 2020 18:17
@sameerz sameerz added this to the Jun 8 - Jun 19 milestone Jun 16, 2020
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
Signed-off-by: spark-rapids automation <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Better way to test fallback
3 participants