-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wenrui Meng
committed
Oct 28, 2021
1 parent
9929386
commit 097a734
Showing
307 changed files
with
1,900 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...l-trino/src/test/resources/product_test_cases_expected/aggregateOverFunction_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select max(upper(`c_string`)), min(upper(`c_string`)) | ||
from `datatype` |
1 change: 1 addition & 0 deletions
1
...trino/src/test/resources/product_test_cases_expected/arrayCreationAccessible_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select `timezone_hour`(`at_timezone`(timestamp '2001-08-22 03:04:05.3', 'asia/oral')), `timezone_minute`(`at_timezone`(timestamp '2001-08-22 03:04:05.3', 'asia/oral')) |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/atTimeZoneAccessible_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select `timezone_hour`(`at_timezone`(timestamp '2001-08-22 03:04:05.3', 'asia/oral')), `timezone_minute`(`at_timezone`(timestamp '2001-08-22 03:04:05.3', 'asia/oral')) |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/averageDistinct_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select avg(distinct `c_bigint`), avg(distinct `c_double`) | ||
from `datatype` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/average_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select avg(`c_bigint`), avg(`c_double`) | ||
from `datatype` |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/bar_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select `bar`(1, 10), `bar`(1, 10, `rgb`(255, 0, 0), `color`('#0f0')) |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/castAccessible_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select cast(10 as varchar(65535) character set `iso-8859-1`) |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countCustomerTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`customer` |
2 changes: 2 additions & 0 deletions
2
...test/resources/product_test_cases_expected/countDistinctOnNonPartitioningKey_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(distinct `c2`) as `cnt` | ||
from `empty` |
2 changes: 2 additions & 0 deletions
2
...rc/test/resources/product_test_cases_expected/countDistinctOnPartitioningKey_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(distinct `c1`) as `cnt` | ||
from `empty` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countDistinct_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(distinct `c_bigint`), count(distinct `c_double`), count(distinct `c_string`), count(distinct `c_date`), count(distinct `c_timestamp`), count(distinct `c_boolean`) | ||
from `datatype` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countLineitemTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`lineitem` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countNationTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`nation` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countOrdersTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`orders` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countPartTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`part` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countPartsuppTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`partsupp` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countRegionTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`region` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/countSupplierTiny_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(*) | ||
from `tpch`.`tiny`.`supplier` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/count_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(`c_bigint`), count(`c_double`), count(`c_string`), count(`c_date`), count(`c_timestamp`), count(`c_boolean`) | ||
from `datatype` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/cross_join_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
cross join `region` |
1 change: 1 addition & 0 deletions
1
...o/src/test/resources/product_test_cases_expected/dateTimeOperatorsAccessible_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select date '2012-08-08' + interval '2' day, time '01:00:00.0' + interval '3' hour, timestamp '2012-08-08 01:00:00.0' + interval '29' hour, timestamp '2012-10-31 01:00:00.0' + interval '1' month, interval '2' day + interval '3' hour, interval '3' year + interval '5' month, date '2012-08-08' - interval '2' day, time '01:00:00.0' - interval '3' hour, timestamp '2012-08-08 01:00:00.0' - interval '29' hour, timestamp '2012-10-31 01:00:00.0' - interval '1' month, interval '2' day - interval '3' hour, interval '3' year - interval '5' month |
15 changes: 15 additions & 0 deletions
15
coral-trino/src/test/resources/product_test_cases_expected/except_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select `n_name` | ||
from `nation` | ||
where `n_nationkey` = 17 | ||
except | ||
select `n_name` | ||
from `nation` | ||
where `n_regionkey` = 2 | ||
union | ||
select `n_name` | ||
from `nation` | ||
where `n_regionkey` = 2 | ||
intersect | ||
select `n_name` | ||
from `nation` | ||
where `n_nationkey` > 15 |
4 changes: 4 additions & 0 deletions
4
...st/resources/product_test_cases_expected/explicit_inner_implicit_same_tables_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name` | ||
from `nation` | ||
inner join `part` on `n_nationkey` = `p_partkey` | ||
where `n_name` < `p_name` |
3 changes: 3 additions & 0 deletions
3
...est/resources/product_test_cases_expected/explicit_inner_join_select_columns_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
inner join `region` on `nation`.`n_regionkey` = `region`.`r_regionkey` |
3 changes: 3 additions & 0 deletions
3
.../test/resources/product_test_cases_expected/explicit_inner_join_select_count_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select count(*) | ||
from `nation` | ||
inner join `region` on `nation`.`n_regionkey` = `region`.`r_regionkey` |
3 changes: 3 additions & 0 deletions
3
...c/test/resources/product_test_cases_expected/explicit_inner_join_select_star_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select * | ||
from `nation` | ||
inner join `region` on `nation`.`n_regionkey` = `region`.`r_regionkey` |
4 changes: 4 additions & 0 deletions
4
.../test/resources/product_test_cases_expected/explicit_inner_join_select_where_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
inner join `region` on `nation`.`n_regionkey` = `region`.`r_regionkey` | ||
where `n_name` > 'e' |
4 changes: 4 additions & 0 deletions
4
...est/resources/product_test_cases_expected/explicit_left_implicit_same_tables_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name` | ||
from `nation` | ||
left join `part` on `n_nationkey` = `p_partkey` | ||
where `n_name` < `p_name` |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/extractAccessible_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select extract(day from timestamp '2001-08-22 03:04:05.3') |
4 changes: 4 additions & 0 deletions
4
...trino/src/test/resources/product_test_cases_expected/implicit_explicit_inner_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name`, `r_name` | ||
from `nation` | ||
inner join `part` on `r_regionkey` = `p_partkey` | ||
where `n_nationkey` = `r_regionkey` |
4 changes: 4 additions & 0 deletions
4
...-trino/src/test/resources/product_test_cases_expected/implicit_explicit_left_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name`, `r_name` | ||
from `nation` | ||
left join `part` on `r_regionkey` = `p_partkey` | ||
where `n_nationkey` = `r_regionkey` |
3 changes: 3 additions & 0 deletions
3
...c/test/resources/product_test_cases_expected/implicit_inner_join_table_alias_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n`.`n_name`, `r`.`r_name` | ||
from `nation` as `n` | ||
where `n`.`n_regionkey` = `r`.`r_regionkey` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/implicit_less_then_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
where `r_regionkey` > `n_nationkey` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/implicit_not_equal_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
where `r_regionkey` <> `n_nationkey` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/inner_join_null_data_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `department`, `name`, `salary` | ||
from `workers` | ||
where `n_nationkey` = `department` |
4 changes: 4 additions & 0 deletions
4
...o/src/test/resources/product_test_cases_expected/inner_join_right_outer_join_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name`, `r_name` | ||
from `part` | ||
inner join `nation` on `n_regionkey` = `p_partkey` | ||
right join `region` on `n_nationkey` = `r_regionkey` |
11 changes: 11 additions & 0 deletions
11
coral-trino/src/test/resources/product_test_cases_expected/intersect_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
select `n_name` | ||
from `nation` | ||
where `n_nationkey` = 17 | ||
intersect | ||
select `n_name` | ||
from `nation` | ||
where `n_regionkey` = 1 | ||
union | ||
select `n_name` | ||
from `nation` | ||
where `n_regionkey` = 2 |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/kurtosis_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select `kurtosis`(`c_bigint`), `kurtosis`(`c_double`) | ||
from `datatype` |
3 changes: 3 additions & 0 deletions
3
.../test/resources/product_test_cases_expected/left_join_on_multiple_predicates_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `p_name` | ||
from `nation` | ||
left join `part` on `n_regionkey` = `p_partkey` and `n_name` = `p_name` |
4 changes: 4 additions & 0 deletions
4
...rino/src/test/resources/product_test_cases_expected/left_join_where_constant_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
left join `region` on `n_nationkey` = `r_regionkey` | ||
where `r_name` > 'g' |
4 changes: 4 additions & 0 deletions
4
...o/src/test/resources/product_test_cases_expected/left_join_where_is_not_null_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `n_name` | ||
from `nation` | ||
left join `region` on `n_nationkey` = `r_regionkey` | ||
where `r_name` is not null |
4 changes: 4 additions & 0 deletions
4
...trino/src/test/resources/product_test_cases_expected/left_join_where_is_null_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `n_name` | ||
from `nation` | ||
left join `region` on `n_nationkey` = `r_regionkey` | ||
where `r_name` is null |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/left_outer_join_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `n_name`, `r_name` | ||
from `nation` | ||
left join `region` on `n_nationkey` = `r_regionkey` |
4 changes: 4 additions & 0 deletions
4
...no/src/test/resources/product_test_cases_expected/left_outer_join_inner_join_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `p_partkey`, `n_name`, `r_name` | ||
from `nation` | ||
left join `region` on `n_nationkey` = `r_regionkey` | ||
inner join `part` on `n_regionkey` = `p_partkey` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/likeOperatorWorks_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `name` | ||
from `tpch`.`tiny`.`nation` | ||
where `name` like '%an' |
1 change: 1 addition & 0 deletions
1
...rino/src/test/resources/product_test_cases_expected/mapRetrieveOperatorWorks_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select `map`(array['ala', 'kot'], array[3, 4])['kot'] |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/max_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select max(`c_bigint`), max(`c_double`), max(`c_string`), max(`c_date`), max(`c_timestamp`) | ||
from `datatype` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/minMaxHasRows_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select min(`c1`), max(`c1`) | ||
from `empty` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/min_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select min(`c_bigint`), min(`c_double`), min(`c_string`), min(`c_date`), min(`c_timestamp`) | ||
from `datatype` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/mixAggregate_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(`c_string`), max(`c_double`), avg(`c_bigint`) | ||
from `datatype` |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/multipleDistinctAgg_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select count(distinct `n_regionkey`), count(distinct `n_name`), min(distinct `n_nationkey`) | ||
from `nation` |
6 changes: 6 additions & 0 deletions
6
.../resources/product_test_cases_expected/multipleWithExprsReferencedFromParent_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
with `wnation` as (select `n_nationkey`, `n_regionkey` | ||
from `nation`), `wregion` as (select `r_regionkey`, `r_name` | ||
from `region`) (select `n`.`n_nationkey`, `r`.`r_regionkey` | ||
from `wnation` as `n` | ||
inner join `wregion` as `r` on `n`.`n_regionkey` = `r`.`r_regionkey` | ||
where `r`.`r_name` = 'africa') |
2 changes: 2 additions & 0 deletions
2
coral-trino/src/test/resources/product_test_cases_expected/multiplyOperator_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
select `c1` * `c1` | ||
from `empty` |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/noOrderAllRowsPeers_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `orderkey`, `suppkey`, `discount`, rank() over (partition by `suppkey`) | ||
from `tpch`.`tiny`.`lineitem` | ||
where `partkey` = 272 |
4 changes: 4 additions & 0 deletions
4
coral-trino/src/test/resources/product_test_cases_expected/orderByAggregate_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `regionkey` as `nationkey`, `nationkey` as `regionkey`, `name` | ||
from `tpch`.`tiny`.`nation` | ||
where `nationkey` < 20 | ||
order by `nationkey` desc, `regionkey` |
4 changes: 4 additions & 0 deletions
4
...rino/src/test/resources/product_test_cases_expected/orderByAliasSameAsColumn_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `regionkey` as `nationkey`, `nationkey` as `regionkey`, `name` | ||
from `tpch`.`tiny`.`nation` | ||
where `nationkey` < 20 | ||
order by `nationkey` desc, `regionkey` |
5 changes: 5 additions & 0 deletions
5
...-trino/src/test/resources/product_test_cases_expected/orderByAscNullsDefault_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 |
5 changes: 5 additions & 0 deletions
5
coral-trino/src/test/resources/product_test_cases_expected/orderByAscNullsFirst_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 nulls first |
5 changes: 5 additions & 0 deletions
5
coral-trino/src/test/resources/product_test_cases_expected/orderByAscNullsLast_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 nulls last |
5 changes: 5 additions & 0 deletions
5
...no/src/test/resources/product_test_cases_expected/orderByDefaultNullsDefault_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 |
5 changes: 5 additions & 0 deletions
5
...rino/src/test/resources/product_test_cases_expected/orderByDefaultNullsFirst_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 nulls first |
5 changes: 5 additions & 0 deletions
5
...trino/src/test/resources/product_test_cases_expected/orderByDefaultNullsLast_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 nulls last |
5 changes: 5 additions & 0 deletions
5
...l-trino/src/test/resources/product_test_cases_expected/orderByDescNullsFirst_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 desc nulls first |
5 changes: 5 additions & 0 deletions
5
coral-trino/src/test/resources/product_test_cases_expected/orderByDescNullsLast_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select * | ||
from (select cast(null as bigint) | ||
union all | ||
select 1) as `t` | ||
order by 1 desc nulls last |
4 changes: 4 additions & 0 deletions
4
...ino/src/test/resources/product_test_cases_expected/orderByDistinctColumnDesc_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select distinct `brand` | ||
from `tpch`.`tiny`.`part` | ||
where `partkey` < 15 | ||
order by 1 desc |
4 changes: 4 additions & 0 deletions
4
coral-trino/src/test/resources/product_test_cases_expected/orderByExpression_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `totalprice` * 1.0625, `custkey` | ||
from `tpch`.`tiny`.`orders` | ||
order by 1 | ||
fetch next 20 rows only |
4 changes: 4 additions & 0 deletions
4
...no/src/test/resources/product_test_cases_expected/orderByMixOfColumnsAscDesc_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `orderdate`, `orderpriority`, `custkey` | ||
from `tpch`.`tiny`.`orders` | ||
order by 1 desc, 2, 3 desc | ||
fetch next 20 rows only |
5 changes: 5 additions & 0 deletions
5
.../src/test/resources/product_test_cases_expected/orderByNonProjectedAggregate_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select avg(`retailprice`), `mfgr` | ||
from `tpch`.`tiny`.`part` | ||
group by 2 | ||
order by count(*) | ||
fetch next 20 rows only |
3 changes: 3 additions & 0 deletions
3
...no/src/test/resources/product_test_cases_expected/orderByNonProjectedColumns_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `nationkey`, `name` | ||
from `tpch`.`tiny`.`nation` | ||
order by `regionkey`, `nationkey` |
4 changes: 4 additions & 0 deletions
4
...src/test/resources/product_test_cases_expected/orderByNonProjectedExpression_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select `custkey`, `orderstatus` | ||
from `tpch`.`tiny`.`orders` | ||
order by `totalprice` * 1.0625 | ||
fetch next 20 rows only |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/orderByOrdinals_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `regionkey`, `nationkey` | ||
from `tpch`.`tiny`.`nation` | ||
order by 1, 2 |
5 changes: 5 additions & 0 deletions
5
...l-trino/src/test/resources/product_test_cases_expected/predicateNotProjected_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
select `n_nationkey` | ||
from `nation` | ||
where `n_name` < 'india' | ||
order by `n_nationkey` | ||
fetch next 3 rows only |
3 changes: 3 additions & 0 deletions
3
coral-trino/src/test/resources/product_test_cases_expected/prediction_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select `classify`(`features`(1, 2 + `random`(1)), `model`) | ||
from (select `learn_classifier`(`labels`, `features`) as `model` | ||
from (values row(1, `features`(1, 2))) as `t` (`labels`, `features`)) as `t2` |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/projectAggFuncs_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select count(10), max(50), min(90.0) |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/projectConstants_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select 1, 1.1, 100 * 5.1, 'a', 'dummy values', true, false |
1 change: 1 addition & 0 deletions
1
coral-trino/src/test/resources/product_test_cases_expected/projectFunctions_expected.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select abs(-10.0), `log2`(4), true and false, true or false |
Oops, something went wrong.