Skip to content

Commit

Permalink
Add datetime type convert e2e test (#31058)
Browse files Browse the repository at this point in the history
* Add datetime type convert e2e test

* Add assertion

* Fix

* Fix
  • Loading branch information
zihaoAK47 committed Apr 29, 2024
1 parent 7c52e25 commit 72da57f
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</test-case>

<test-case sql="SELECT 1=1, 1!=1" db-types="MySQL" scenario-types="db_tbl_sql_federation" >
<assertion />
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT 1=1, 1!=1, 1&gt;1, 1&lt;1, 1&gt;=1, 1&lt;=1" db-types="MySQL" scenario-types="db_tbl_sql_federation" >
<assertion />
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT * FROM t_order WHERE remark LIKE '%张%'" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db_tbl_sql_federation" >
Expand Down Expand Up @@ -268,4 +268,12 @@
<test-case sql="select * from shardingsphere.cluster_information;" db-types="MySQL,PostgreSQL,openGauss" scenario-types="db">
<assertion expected-data-file="select_cluster_information.xml" />
</test-case>

<test-case sql="SELECT type_datetime FROM t_product_extend" db-types="MySQL" scenario-types="db_tbl_sql_federation">
<assertion expected-data-source-name="read_dataset" />
</test-case>

<test-case sql="SELECT result.max_datetime FROM (SELECT MAX(type_datetime) AS max_datetime FROM t_product_extend) result" db-types="MySQL" scenario-types="db_tbl_sql_federation">
<assertion expected-data-source-name="read_dataset" />
</test-case>
</integration-test-cases>

0 comments on commit 72da57f

Please sign in to comment.