-
Notifications
You must be signed in to change notification settings - Fork 242
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
Fix unit tests when AQE is enabled #558
Conversation
Signed-off-by: Niranjan Artal <[email protected]>
Signed-off-by: Niranjan Artal <[email protected]>
Signed-off-by: Niranjan Artal <[email protected]>
build |
tests/src/test/scala/com/nvidia/spark/rapids/BroadcastHashJoinSuite.scala
Outdated
Show resolved
Hide resolved
tests/src/test/scala/com/nvidia/spark/rapids/HashSortOptimizeSuite.scala
Outdated
Show resolved
Hide resolved
tests/src/test/scala/com/nvidia/spark/rapids/BroadcastHashJoinSuite.scala
Show resolved
Hide resolved
tests/src/test/scala/com/nvidia/spark/rapids/BroadcastHashJoinSuite.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Niranjan Artal <[email protected]>
Thanks @andygrove for reviewing. I think I have addressed all the review comments. Please take another look. |
tests/src/test/scala/com/nvidia/spark/rapids/BroadcastHashJoinSuite.scala
Outdated
Show resolved
Hide resolved
"GpuBuildLeft") | ||
assert(ShimLoader.getSparkShims.getBuildSide(res2.get.asInstanceOf[HashJoin]).toString == | ||
"GpuBuildRight") | ||
val initialPlan2 = plan2.queryExecution.executedPlan |
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.
Same comment here re removing intermediate variable
Signed-off-by: Niranjan Artal <[email protected]>
@@ -35,13 +37,14 @@ class BroadcastHashJoinSuite extends SparkQueryCompareTestSuite { | |||
val df5 = df4.join(df3, Seq("longs"), "inner") | |||
|
|||
val plan = df5.queryExecution.executedPlan |
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.
sorry, just one more nit. It would be better to get the reference to the executedPlan after calling collect rather than before. The goal is to get the final plan, so it would be clearer in this order. It isn't obvious to people looking this code that the executedPlan gets updated by the call to collect. Other than this, LGTM.
Signed-off-by: Niranjan Artal <[email protected]>
build |
* explicitly disable AQE in one test (NVIDIA#567) Signed-off-by: Andy Grove <[email protected]> * Enable using spark-submit to convert from csv to parquet (NVIDIA#565) Signed-off-by: Andy Grove <[email protected]> * xfail the Spark 3.1.0 integration tests that fail (NVIDIA#580) * xfail GpuTimeSub, arithmetic ops, and full outer join failures on 3.1.0 Signed-off-by: Thomas Graves <[email protected]> * xfail the rest of the 3.1.0 tests and enable 3.1.0 unit tests in the jenkins builds Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Fix unit tests when AQE is enabled (NVIDIA#558) * Fix scala tests when AQE is enabled Signed-off-by: Niranjan Artal <[email protected]> * fix broadcasthashjoin tests Signed-off-by: Niranjan Artal <[email protected]> * fix indentation Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * Update buffer store to return compressed batches directly, add compression NVTX ranges (NVIDIA#572) * Update buffer store to return compressed batches directly, add compression NVTX ranges Signed-off-by: Jason Lowe <[email protected]> * Update parameter name for clarity Signed-off-by: Jason Lowe <[email protected]> * xfail the tpch spark 3.1.0 tests that fail (NVIDIA#588) Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Move GpuParquetScan/GpuOrcScan into Shim (NVIDIA#590) * Move GpuParquetScan to shim Signed-off-by: Thomas Graves <[email protected]> * Move scan overrides into shim Signed-off-by: Thomas Graves <[email protected]> * Rename GpuParquetScan object to match Signed-off-by: Thomas Graves <[email protected]> * Add tests for v2 datasources Signed-off-by: Thomas Graves <[email protected]> * Move OrcScan into shims Signed-off-by: Thomas Graves <[email protected]> * Fixes Signed-off-by: Thomas Graves <[email protected]> * Fix imports Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Filter nulls from joins where possible to improve performance. (NVIDIA#594) * Filter nulls from joins where possible to improve performance. Signed-off-by: Robert (Bobby) Evans <[email protected]> * Addressed review comments Signed-off-by: Robert (Bobby) Evans <[email protected]> * Updated patch for other shims * changelog generator Signed-off-by: Peixin Li <[email protected]> * only filter out labels for issue * add nightly workflow on github actions Co-authored-by: Andy Grove <[email protected]> Co-authored-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> Co-authored-by: Niranjan Artal <[email protected]> Co-authored-by: Jason Lowe <[email protected]> Co-authored-by: Robert (Bobby) Evans <[email protected]>
* explicitly disable AQE in one test (NVIDIA#567) Signed-off-by: Andy Grove <[email protected]> * Enable using spark-submit to convert from csv to parquet (NVIDIA#565) Signed-off-by: Andy Grove <[email protected]> * xfail the Spark 3.1.0 integration tests that fail (NVIDIA#580) * xfail GpuTimeSub, arithmetic ops, and full outer join failures on 3.1.0 Signed-off-by: Thomas Graves <[email protected]> * xfail the rest of the 3.1.0 tests and enable 3.1.0 unit tests in the jenkins builds Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Fix unit tests when AQE is enabled (NVIDIA#558) * Fix scala tests when AQE is enabled Signed-off-by: Niranjan Artal <[email protected]> * fix broadcasthashjoin tests Signed-off-by: Niranjan Artal <[email protected]> * fix indentation Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * Update buffer store to return compressed batches directly, add compression NVTX ranges (NVIDIA#572) * Update buffer store to return compressed batches directly, add compression NVTX ranges Signed-off-by: Jason Lowe <[email protected]> * Update parameter name for clarity Signed-off-by: Jason Lowe <[email protected]> * xfail the tpch spark 3.1.0 tests that fail (NVIDIA#588) Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Move GpuParquetScan/GpuOrcScan into Shim (NVIDIA#590) * Move GpuParquetScan to shim Signed-off-by: Thomas Graves <[email protected]> * Move scan overrides into shim Signed-off-by: Thomas Graves <[email protected]> * Rename GpuParquetScan object to match Signed-off-by: Thomas Graves <[email protected]> * Add tests for v2 datasources Signed-off-by: Thomas Graves <[email protected]> * Move OrcScan into shims Signed-off-by: Thomas Graves <[email protected]> * Fixes Signed-off-by: Thomas Graves <[email protected]> * Fix imports Signed-off-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> * Filter nulls from joins where possible to improve performance. (NVIDIA#594) * Filter nulls from joins where possible to improve performance. Signed-off-by: Robert (Bobby) Evans <[email protected]> * Addressed review comments Signed-off-by: Robert (Bobby) Evans <[email protected]> * Updated patch for other shims * changelog generator Signed-off-by: Peixin Li <[email protected]> * only filter out labels for issue * add nightly workflow on github actions * fix format Co-authored-by: Andy Grove <[email protected]> Co-authored-by: Thomas Graves <[email protected]> Co-authored-by: Thomas Graves <[email protected]> Co-authored-by: Niranjan Artal <[email protected]> Co-authored-by: Jason Lowe <[email protected]> Co-authored-by: Robert (Bobby) Evans <[email protected]>
* Fix scala tests when AQE is enabled Signed-off-by: Niranjan Artal <[email protected]> * fix broadcasthashjoin tests Signed-off-by: Niranjan Artal <[email protected]> * fix indentation Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]>
* Fix scala tests when AQE is enabled Signed-off-by: Niranjan Artal <[email protected]> * fix broadcasthashjoin tests Signed-off-by: Niranjan Artal <[email protected]> * fix indentation Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]> * addressed review comments Signed-off-by: Niranjan Artal <[email protected]>
…IDIA#558) Signed-off-by: spark-rapids automation <[email protected]> Signed-off-by: spark-rapids automation <[email protected]>
This fixes #452 and also BroadcastHashJoinSuite when AQE is enabled.