-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRILL-7615: Added tests to verify that decimal columns work correctly…
… with UNION operator (#603) Also renamed existing tests according to the project naming convention
- Loading branch information
Showing
145 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union/CastToDifferentDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union/CastToDifferentDecimals.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 cast(1000 as decimal(10,1)) | ||
UNION | ||
SELECT 596.000; |
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 @@ | ||
1000.0 | ||
596.0 |
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 cast(1000 as decimal(10,1)) | ||
UNION | ||
SELECT cast(596.000 as decimal(10,1)); |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union/CastToSameDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
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 cast(1000 as decimal(10,3)) | ||
UNION | ||
SELECT 596.000; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union/CastToThreeDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
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 cast(1000 as decimal(10,3)) | ||
UNION | ||
SELECT cast(596.000 as decimal(10,3)) |
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 @@ | ||
Awesome text | ||
10.101 |
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 'Awesome text' | ||
UNION | ||
SELECT 10.101 | ||
UNION | ||
SELECT 10.101; |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union/TheeDifferentDecimalsNoCast.e_tsv
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 @@ | ||
10.100 | ||
20.120 | ||
30.123 |
5 changes: 5 additions & 0 deletions
5
framework/resources/Functional/union/TheeDifferentDecimalsNoCast.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 10.1 | ||
UNION | ||
SELECT 20.12 | ||
UNION | ||
SELECT 30.123; |
1 change: 1 addition & 0 deletions
1
framework/resources/Functional/union/ThreeCastsToDecimals.e_tsv
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 @@ | ||
100.000 |
5 changes: 5 additions & 0 deletions
5
framework/resources/Functional/union/ThreeCastsToDecimals.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 cast(100 as decimal(10,3)) | ||
UNION | ||
SELECT cast(100 as decimal(10,2)) | ||
UNION | ||
SELECT cast(100 as decimal(10,1)); |
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 @@ | ||
2017-04-06 | ||
Awesome text |
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 'Awesome text' | ||
UNION | ||
SELECT date '2017-04-06'; |
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 @@ | ||
10.101 | ||
Awesome text |
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 'Awesome text' | ||
UNION | ||
SELECT 10.101; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union/VarcharSubstringAndDate.e_tsv
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 @@ | ||
2017-04-06 | ||
ABC |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union/VarcharSubstringAndDate.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 SUBSTRING('ABC some text', 1, 3) AS ExtractString | ||
UNION | ||
SELECT date '2017-04-06'; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/CastToDifferentDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/CastToDifferentDecimals.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 cast(1000 as decimal(10,1)) | ||
UNION ALL | ||
SELECT 596.000; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/CastToOneDecimals.e_tsv
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 @@ | ||
1000.0 | ||
596.0 |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/CastToOneDecimals.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 cast(1000 as decimal(10,1)) | ||
UNION ALL | ||
SELECT cast(596.000 as decimal(10,1)); |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/CastToSameDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/CastToSameDecimals.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 cast(1000 as decimal(10,3)) | ||
UNION ALL | ||
SELECT 596.000; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/CastToThreeDecimals.e_tsv
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 @@ | ||
1000.000 | ||
596.000 |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/CastToThreeDecimals.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 cast(1000 as decimal(10,3)) | ||
UNION ALL | ||
SELECT cast(596.000 as decimal(10,3)) |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/IntegerAndVarchar.e_tsv
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 @@ | ||
Awesome text | ||
10.101 | ||
10.101 |
5 changes: 5 additions & 0 deletions
5
framework/resources/Functional/union_all/prq_union_all/IntegerAndVarchar.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 'Awesome text' | ||
UNION ALL | ||
SELECT 10.101 | ||
UNION ALL | ||
SELECT 10.101; |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/TheeDifferentDecimalsNoCast.e_tsv
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 @@ | ||
10.100 | ||
20.120 | ||
30.123 |
5 changes: 5 additions & 0 deletions
5
framework/resources/Functional/union_all/prq_union_all/TheeDifferentDecimalsNoCast.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 10.1 | ||
UNION ALL | ||
SELECT 20.12 | ||
UNION ALL | ||
SELECT 30.123; |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/ThreeCastsToDecimals.e_tsv
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 @@ | ||
100.000 | ||
100.000 | ||
100.000 |
5 changes: 5 additions & 0 deletions
5
framework/resources/Functional/union_all/prq_union_all/ThreeCastsToDecimals.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 cast(100 as decimal(10,3)) | ||
UNION ALL | ||
SELECT cast(100 as decimal(10,2)) | ||
UNION ALL | ||
SELECT cast(100 as decimal(10,1)); |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/VarcharAndDate.e_tsv
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 @@ | ||
2017-04-06 | ||
Awesome text |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/VarcharAndDate.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 'Awesome text' | ||
UNION ALL | ||
SELECT date '2017-04-06'; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/VarcharAndDecimal.e_tsv
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 @@ | ||
10.101 | ||
Awesome text |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/VarcharAndDecimal.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 'Awesome text' | ||
UNION ALL | ||
SELECT 10.101; |
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/VarcharSubstringAndDate.e_tsv
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 @@ | ||
2017-04-06 | ||
ABC |
3 changes: 3 additions & 0 deletions
3
framework/resources/Functional/union_all/prq_union_all/VarcharSubstringAndDate.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 SUBSTRING('ABC some text', 1, 3) AS ExtractString | ||
UNION ALL | ||
SELECT date '2017-04-06'; |