Skip to content

Commit

Permalink
fix: fix e2e tests for issue apache#4680
Browse files Browse the repository at this point in the history
  • Loading branch information
Malaydewangan09 committed Oct 28, 2024
1 parent d2dc08b commit 3ef0f86
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT AVG(DISTINCT order_id) AS avg_id, user_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
<test-case sql="SELECT AVG(DISTINCT order_id) AS avg_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
scenario-comments="Test AVG DISTINCT returns NULL when no data matches">
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT SUM(DISTINCT order_id) AS sum_id, user_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
<test-case sql="SELECT SUM(DISTINCT order_id) AS sum_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
scenario-comments="Test SUM DISTINCT returns NULL when no data matches">
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT COUNT(DISTINCT order_id) AS count_id, user_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
<test-case sql="SELECT COUNT(DISTINCT order_id) AS count_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
scenario-comments="Test COUNT DISTINCT returns 0 when no data matches">
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT MIN(DISTINCT order_id) AS min_id, user_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
<test-case sql="SELECT MIN(DISTINCT order_id) AS min_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
scenario-comments="Test MIN DISTINCT returns NULL when no data matches">
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT MAX(DISTINCT order_id) AS max_id, user_id FROM t_order WHERE 1 = 2 GROUP BY name" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
<test-case sql="SELECT MAX(DISTINCT order_id) AS max_id FROM t_order" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db,tbl"
scenario-comments="Test MAX DISTINCT returns NULL when no data matches">
<assertion expected-data-source-name="read_dataset" />
</test-case>
Expand Down

0 comments on commit 3ef0f86

Please sign in to comment.