-
- Downloads
[MINOR][SQL] Additional test case for CheckCartesianProducts rule
## What changes were proposed in this pull request? While discovering optimization rules and their test coverage, I did not find any tests for `CheckCartesianProducts` in the Catalyst folder. So, I decided to create a new test suite. Once I finished, I found a test in `JoinSuite` for this functionality so feel free to discard this change if it does not make much sense. The proposed test suite covers a few additional use cases. Author: aokolnychyi <anton.okolnychyi@sap.com> Closes #18909 from aokolnychyi/check-cartesian-join-tests.
Showing
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/CheckCartesianProductsSuite.scala 91 additions, 0 deletions.../sql/catalyst/optimizer/CheckCartesianProductsSuite.scala
- sql/core/src/test/resources/sql-tests/inputs/cross-join.sql 2 additions, 1 deletionsql/core/src/test/resources/sql-tests/inputs/cross-join.sql
- sql/core/src/test/resources/sql-tests/results/cross-join.sql.out 11 additions, 1 deletion...e/src/test/resources/sql-tests/results/cross-join.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala 32 additions, 0 deletionssql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
Please register or sign in to comment