Skip to content

Commit 48f6478

Browse files
gatorsmiledongjoon-hyun
authored andcommitted
[SPARK-30644][SQL][TEST] Remove query index from the golden files of SQLQueryTestSuite
### What changes were proposed in this pull request? This PR is to remove query index from the golden files of SQLQueryTestSuite ### Why are the changes needed? Because the SQLQueryTestSuite's golden files have the query index for each query, removal of any query statement [except the last one] will generate many unneeded difference. This will make code review harder. The number of changed lines is misleading. ### Does this PR introduce any user-facing change? No ### How was this patch tested? N/A Closes apache#27361 from gatorsmile/removeIndexNum. Authored-by: Xiao Li <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent d69ed9a commit 48f6478

File tree

175 files changed

+24026
-24026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+24026
-24026
lines changed

sql/core/src/test/resources/sql-tests/results/ansi/decimalArithmeticOperations.sql.out

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,137 +2,137 @@
22
-- Number of queries: 16
33

44

5-
-- !query 0
5+
-- !query
66
create table decimals_test(id int, a decimal(38,18), b decimal(38,18)) using parquet
7-
-- !query 0 schema
7+
-- !query schema
88
struct<>
9-
-- !query 0 output
9+
-- !query output
1010

1111

1212

13-
-- !query 1
13+
-- !query
1414
insert into decimals_test values(1, 100.0, 999.0), (2, 12345.123, 12345.123),
1515
(3, 0.1234567891011, 1234.1), (4, 123456789123456789.0, 1.123456789123456789)
16-
-- !query 1 schema
16+
-- !query schema
1717
struct<>
18-
-- !query 1 output
18+
-- !query output
1919

2020

2121

22-
-- !query 2
22+
-- !query
2323
select id, a*10, b/10 from decimals_test order by id
24-
-- !query 2 schema
24+
-- !query schema
2525
struct<id:int,(CAST(a AS DECIMAL(38,18)) * CAST(CAST(10 AS DECIMAL(2,0)) AS DECIMAL(38,18))):decimal(38,15),(CAST(b AS DECIMAL(38,18)) / CAST(CAST(10 AS DECIMAL(2,0)) AS DECIMAL(38,18))):decimal(38,18)>
26-
-- !query 2 output
26+
-- !query output
2727
1 1000.000000000000000 99.900000000000000000
2828
2 123451.230000000000000 1234.512300000000000000
2929
3 1.234567891011000 123.410000000000000000
3030
4 1234567891234567890.000000000000000 0.112345678912345679
3131

3232

33-
-- !query 3
33+
-- !query
3434
select 10.3 * 3.0
35-
-- !query 3 schema
35+
-- !query schema
3636
struct<(CAST(10.3 AS DECIMAL(3,1)) * CAST(3.0 AS DECIMAL(3,1))):decimal(6,2)>
37-
-- !query 3 output
37+
-- !query output
3838
30.90
3939

4040

41-
-- !query 4
41+
-- !query
4242
select 10.3000 * 3.0
43-
-- !query 4 schema
43+
-- !query schema
4444
struct<(CAST(10.3000 AS DECIMAL(6,4)) * CAST(3.0 AS DECIMAL(6,4))):decimal(9,5)>
45-
-- !query 4 output
45+
-- !query output
4646
30.90000
4747

4848

49-
-- !query 5
49+
-- !query
5050
select 10.30000 * 30.0
51-
-- !query 5 schema
51+
-- !query schema
5252
struct<(CAST(10.30000 AS DECIMAL(7,5)) * CAST(30.0 AS DECIMAL(7,5))):decimal(11,6)>
53-
-- !query 5 output
53+
-- !query output
5454
309.000000
5555

5656

57-
-- !query 6
57+
-- !query
5858
select 10.300000000000000000 * 3.000000000000000000
59-
-- !query 6 schema
59+
-- !query schema
6060
struct<(CAST(10.300000000000000000 AS DECIMAL(20,18)) * CAST(3.000000000000000000 AS DECIMAL(20,18))):decimal(38,34)>
61-
-- !query 6 output
61+
-- !query output
6262
30.9000000000000000000000000000000000
6363

6464

65-
-- !query 7
65+
-- !query
6666
select 10.300000000000000000 * 3.0000000000000000000
67-
-- !query 7 schema
67+
-- !query schema
6868
struct<(CAST(10.300000000000000000 AS DECIMAL(21,19)) * CAST(3.0000000000000000000 AS DECIMAL(21,19))):decimal(38,34)>
69-
-- !query 7 output
69+
-- !query output
7070
30.9000000000000000000000000000000000
7171

7272

73-
-- !query 8
73+
-- !query
7474
select (5e36BD + 0.1) + 5e36BD
75-
-- !query 8 schema
75+
-- !query schema
7676
struct<>
77-
-- !query 8 output
77+
-- !query output
7878
java.lang.ArithmeticException
7979
Decimal(expanded,10000000000000000000000000000000000000.1,39,1}) cannot be represented as Decimal(38, 1).
8080

8181

82-
-- !query 9
82+
-- !query
8383
select (-4e36BD - 0.1) - 7e36BD
84-
-- !query 9 schema
84+
-- !query schema
8585
struct<>
86-
-- !query 9 output
86+
-- !query output
8787
java.lang.ArithmeticException
8888
Decimal(expanded,-11000000000000000000000000000000000000.1,39,1}) cannot be represented as Decimal(38, 1).
8989

9090

91-
-- !query 10
91+
-- !query
9292
select 12345678901234567890.0 * 12345678901234567890.0
93-
-- !query 10 schema
93+
-- !query schema
9494
struct<>
95-
-- !query 10 output
95+
-- !query output
9696
java.lang.ArithmeticException
9797
Decimal(expanded,152415787532388367501905199875019052100,39,0}) cannot be represented as Decimal(38, 2).
9898

9999

100-
-- !query 11
100+
-- !query
101101
select 1e35BD / 0.1
102-
-- !query 11 schema
102+
-- !query schema
103103
struct<>
104-
-- !query 11 output
104+
-- !query output
105105
java.lang.ArithmeticException
106106
Decimal(expanded,1000000000000000000000000000000000000,37,0}) cannot be represented as Decimal(38, 6).
107107

108108

109-
-- !query 12
109+
-- !query
110110
select 123456789123456789.1234567890 * 1.123456789123456789
111-
-- !query 12 schema
111+
-- !query schema
112112
struct<(CAST(123456789123456789.1234567890 AS DECIMAL(36,18)) * CAST(1.123456789123456789 AS DECIMAL(36,18))):decimal(38,18)>
113-
-- !query 12 output
113+
-- !query output
114114
138698367904130467.654320988515622621
115115

116116

117-
-- !query 13
117+
-- !query
118118
select 123456789123456789.1234567890 * 1.123456789123456789
119-
-- !query 13 schema
119+
-- !query schema
120120
struct<(CAST(123456789123456789.1234567890 AS DECIMAL(36,18)) * CAST(1.123456789123456789 AS DECIMAL(36,18))):decimal(38,18)>
121-
-- !query 13 output
121+
-- !query output
122122
138698367904130467.654320988515622621
123123

124124

125-
-- !query 14
125+
-- !query
126126
select 12345678912345.123456789123 / 0.000000012345678
127-
-- !query 14 schema
127+
-- !query schema
128128
struct<(CAST(12345678912345.123456789123 AS DECIMAL(29,15)) / CAST(1.2345678E-8 AS DECIMAL(29,15))):decimal(38,9)>
129-
-- !query 14 output
129+
-- !query output
130130
1000000073899961059796.725866332
131131

132132

133-
-- !query 15
133+
-- !query
134134
drop table decimals_test
135-
-- !query 15 schema
135+
-- !query schema
136136
struct<>
137-
-- !query 15 output
137+
-- !query output
138138

0 commit comments

Comments
 (0)