-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support barrier mode for mapInPandas/mapInArrow #10364
Merged
Merged
Conversation
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
Signed-off-by: Bobby Wang <wbo4958@gmail.com>
build |
firestarman
approved these changes
Feb 2, 2024
firestarman
reviewed
Feb 2, 2024
@@ -425,3 +426,41 @@ def test_func(spark): | |||
lambda data: [pd.DataFrame([len(list(data))])], schema="ret:integer") | |||
|
|||
assert_gpu_and_cpu_are_equal_collect(test_func, conf=arrow_udf_conf) | |||
|
|||
|
|||
@pytest.mark.skipif(is_before_spark_350(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Better to ignore order for result comparison.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to do that, since there is only 1 partition, the result will not be mess up.
jlowe
added a commit
to jlowe/spark-rapids
that referenced
this pull request
Feb 2, 2024
This reverts commit cca5955. Signed-off-by: Jason Lowe <jlowe@nvidia.com>
jlowe
added a commit
that referenced
this pull request
Feb 2, 2024
wbo4958
added a commit
to wbo4958/spark-rapids
that referenced
this pull request
Feb 5, 2024
Signed-off-by: Bobby Wang <wbo4958@gmail.com>
jlowe
pushed a commit
that referenced
this pull request
Feb 6, 2024
* Support barrier mode for mapInPandas/mapInArrow (#10364) Signed-off-by: Bobby Wang <wbo4958@gmail.com> * support databricks * license --------- Signed-off-by: Bobby Wang <wbo4958@gmail.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To fix #10344
Spark 3.5 has introduced a new feature supporting barrier mode for mapInPandas/mapInArrow, more detail can be found at https://issues.apache.org/jira/browse/SPARK-42896. However, spark-rapids missed this feature which resulted in unexpected behavior. For example
The same tasks of the above code will run on barrier mode on the CPU, while on
non-barrier
mode on the GPU with spark-rapids.