Uh oh!
There was an error while loading. Please reload this page.
[SPARK-28390][SQL][PYTHON][TESTS] Convert and port 'pgSQL/select_having.sql' into UDF test base - #25161
[SPARK-28390][SQL][PYTHON][TESTS] Convert and port 'pgSQL/select_having.sql' into UDF test base#25161shivusondur wants to merge 8 commits into
Conversation
HyukjinKwon
commented
Jul 15, 2019
Thanks for working on this. Let's wait for #25130. We need to fix UDF testing base itself |
There was a problem hiding this comment.
After merging the PR I pointed out, let's try HAVING udf(1 > 2) combination as well.
Uh oh!
There was an error while loading. Please reload this page.
HyukjinKwon
commented
Jul 15, 2019
Can you post the diff in the PR description as guided in the parent JIRA? |
shivusondur
commented
Jul 15, 2019
Done |
HyukjinKwon
commented
Jul 15, 2019
PR description isn't exactly guided. It should be foldable with Detailshtml tag. |
shivusondur
commented
Jul 15, 2019
|
HyukjinKwon
commented
Jul 18, 2019
ok to test |
HyukjinKwon
commented
Jul 18, 2019
#25130 is merged. Can you rebase and update it against the current master? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
HyukjinKwon
commented
Jul 18, 2019
Looks fine otherwise if the tests pass |
SparkQA
commented
Jul 18, 2019
Test build #107821 has finished for PR 25161 at commit
|
changed the test according to steps mentnioned in SPARK-27921
SparkQA
commented
Jul 19, 2019
Test build #107886 has finished for PR 25161 at commit
|
HyukjinKwon
commented
Jul 19, 2019
retest this please |
SparkQA
commented
Jul 19, 2019
Test build #107889 has finished for PR 25161 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jul 21, 2019
Test build #107969 has finished for PR 25161 at commit
|
HyukjinKwon
commented
Jul 22, 2019
@shivusondur, is the diff correct? Looks weird: diff --git a/sql/core/src/test/resources/sql-tests/results/pgSQL/select_having.sql.out b/sql/core/src/test/resources/sql-tests/results/udf/pgSQL/udf-select_having.sql.out
index 02536eb..96ccd15 100644
--- a/sql/core/src/test/resources/sql-tests/results/pgSQL/select_having.sql.out+++ b/sql/core/src/test/resources/sql-tests/results/udf/pgSQL/udf-select_having.sql.out@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
--- Number of queries: 22+-- Number of queries: 42 |
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jul 22, 2019
Test build #107979 has finished for PR 25161 at commit
|
HyukjinKwon
commented
Jul 22, 2019
Thanks for updating and addressing comments. Looks fine. Let me take a final look again before merging it. |
SparkQA
commented
Jul 22, 2019
Test build #107997 has finished for PR 25161 at commit
|
| -- SELECT_HAVING | ||
| -- https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/select_having.sql | ||
| -- | ||
| -- This test file was converted from inputs/pgSQL/select_having.sql |
There was a problem hiding this comment.
Can we add this todo on the top:
-- TODO: We should add UDFs in GROUP BY clause when [SPARK-28445] is resolved.
and remove same lines below?
| -- Per SQL spec, these should generate 0 or 1 row, even without aggregates | ||
| SELECT udf(udf(min(udf(a)))), udf(udf(max(udf(a)))) FROM test_having HAVING udf(udf(min(udf(a)))) = udf(udf(max(udf(a)))); | ||
| SELECT udf(udf(min(udf(a)))), udf(udf(max(udf(a)))) FROM test_having HAVING udf(udf(min(udf(a)))) < udf(udf(max(udf(a)))); |
There was a problem hiding this comment.
Can we use different UDF combination comparing to the one right above?
There was a problem hiding this comment.
updated like below
SELECT udf(udf(min(udf(a)))), udf(udf(max(udf(a)))) FROM test_having HAVING udf(udf(min(udf(a)))) = udf(udf(max(udf(a))));
SELECT udf(min(udf(a))), udf(udf(max(a))) FROM test_having HAVING udf(min(a)) < udf(max(udf(a)));
SparkQA
commented
Jul 22, 2019
Test build #108021 has finished for PR 25161 at commit
|
SparkQA
commented
Jul 23, 2019
Test build #108031 has finished for PR 25161 at commit
|
shivusondur
commented
Jul 23, 2019
retest this please |
1 similar comment
HyukjinKwon
commented
Jul 24, 2019
retest this please |
SparkQA
commented
Jul 24, 2019
Test build #108068 has finished for PR 25161 at commit
|
HyukjinKwon
commented
Jul 24, 2019
Merged to master. |
What changes were proposed in this pull request?
changed the test according to steps mentioned in SPARK-27921
difference comparing to select_having.sql
How was this patch tested?
by:
sudo SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite -- -z udf/pgSQL/udf-select_having.sql"