-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28283][SQL][PYTHON][TESTS] Convert and port 'intersect-all.sql' into UDF test base #25119
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
Conversation
sql/core/src/test/resources/sql-tests/inputs/udf/udf-intersect-all.sql
Outdated
Show resolved
Hide resolved
|
Test build #107544 has finished for PR 25119 at commit
|
|
retest this please |
sql/core/src/test/resources/sql-tests/inputs/udf/udf-intersect-all.sql
Outdated
Show resolved
Hide resolved
| udf(tab1.k) AS v | ||
| FROM tab1 | ||
| JOIN tab2 | ||
| ON CAST(udf(tab1.k) AS BIGINT) = CAST(udf(tab2.k) AS BIGINT)); |
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.
We could try udf(udf(tab1.k) = udf(tab2.k)) or udf(udf(tab1.k) = tab2.k)
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.
@HyukjinKwon, did you really want this? This removes the join condition, and I get the following message:
Join condition is missing or trivial.
Either: use the CROSS JOIN syntax to allow cartesian products between these
relations, or: enable implicit cartesian products by setting the configuration
variable spark.sql.crossJoin.enabled=true;
Did you mean udf(udf(tab1.k)) = udf(tab2.k) or udf(udf(tab1.k)) = tab2.k.
sql/core/src/test/resources/sql-tests/inputs/udf/udf-intersect-all.sql
Outdated
Show resolved
Hide resolved
|
Test build #107814 has finished for PR 25119 at commit
|
|
@HyukjinKwon, I think I addressed all your comments. Please re-review this. Thanks! |
|
Test build #107830 has finished for PR 25119 at commit
|
|
LGTM Merged to master. |
|
Thanks for working on this. |
What changes were proposed in this pull request?
This PR adds some tests converted from
intersect-all.sqlto test UDFs. Please see contribution guide of this umbrella ticket - SPARK-27921.Diff comparing to 'intersect-all.sql'
How was this patch tested?
Tested as guided in SPARK-27921.