Skip to content

Commit e221f0e

Browse files
committed
Merge master
1 parent 0310e13 commit e221f0e

File tree

6 files changed

+28
-30
lines changed

6 files changed

+28
-30
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,50 @@ select id, a*10, b/10 from decimals_test order by id
2424
-- !query 2 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)>
2626
-- !query 2 output
27-
1 1000 99.9
28-
2 123451.23 1234.5123
29-
3 1.234567891011 123.41
30-
4 1234567891234567890 0.112345678912345679
27+
1 1000.000000000000000 99.900000000000000000
28+
2 123451.230000000000000 1234.512300000000000000
29+
3 1.234567891011000 123.410000000000000000
30+
4 1234567891234567890.000000000000000 0.112345678912345679
3131

3232

3333
-- !query 3
3434
select 10.3 * 3.0
3535
-- !query 3 schema
3636
struct<(CAST(10.3 AS DECIMAL(3,1)) * CAST(3.0 AS DECIMAL(3,1))):decimal(6,2)>
3737
-- !query 3 output
38-
30.9
38+
30.90
3939

4040

4141
-- !query 4
4242
select 10.3000 * 3.0
4343
-- !query 4 schema
4444
struct<(CAST(10.3000 AS DECIMAL(6,4)) * CAST(3.0 AS DECIMAL(6,4))):decimal(9,5)>
4545
-- !query 4 output
46-
30.9
46+
30.90000
4747

4848

4949
-- !query 5
5050
select 10.30000 * 30.0
5151
-- !query 5 schema
5252
struct<(CAST(10.30000 AS DECIMAL(7,5)) * CAST(30.0 AS DECIMAL(7,5))):decimal(11,6)>
5353
-- !query 5 output
54-
309
54+
309.000000
5555

5656

5757
-- !query 6
5858
select 10.300000000000000000 * 3.000000000000000000
5959
-- !query 6 schema
6060
struct<(CAST(10.300000000000000000 AS DECIMAL(20,18)) * CAST(3.000000000000000000 AS DECIMAL(20,18))):decimal(38,34)>
6161
-- !query 6 output
62-
30.9
62+
30.9000000000000000000000000000000000
6363

6464

6565
-- !query 7
6666
select 10.300000000000000000 * 3.0000000000000000000
6767
-- !query 7 schema
6868
struct<(CAST(10.300000000000000000 AS DECIMAL(21,19)) * CAST(3.0000000000000000000 AS DECIMAL(21,19))):decimal(38,34)>
6969
-- !query 7 output
70-
30.9
70+
30.9000000000000000000000000000000000
7171

7272

7373
-- !query 8

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ select 1D, 1.2D, 1e10, 1.5e5, .10D, 0.10D, .1e5, .9e+2, 0.9e+2, 900e-1, 9.e+1
169169
-- !query 17 schema
170170
struct<1.0:double,1.2:double,1E+10:decimal(1,-10),1.5E+5:decimal(2,-4),0.1:double,0.1:double,1E+4:decimal(1,-4),9E+1:decimal(1,-1),9E+1:decimal(1,-1),90.0:decimal(3,1),9E+1:decimal(1,-1)>
171171
-- !query 17 output
172-
1.0 1.2 10000000000 150000 0.1 0.1 10000 90 90 90 90
172+
1.0 1.2 10000000000 150000 0.1 0.1 10000 90 90 90.0 90
173173

174174

175175
-- !query 18
@@ -339,7 +339,7 @@ select 90912830918230182310293801923652346786BD, 123.0E-28BD, 123.08BD
339339
-- !query 35 schema
340340
struct<90912830918230182310293801923652346786:decimal(38,0),1.230E-26:decimal(29,29),123.08:decimal(5,2)>
341341
-- !query 35 output
342-
90912830918230182310293801923652346786 0.0000000000000000000000000123 123.08
342+
90912830918230182310293801923652346786 0.00000000000000000000000001230 123.08
343343

344344

345345
-- !query 36

sql/core/src/test/resources/sql-tests/results/literals.sql.out

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,10 @@ pattern% no-pattern\% pattern\% pattern\\%
254254
select '\'', '"', '\n', '\r', '\t', 'Z'
255255
-- !query 27 schema
256256
struct<':string,":string,
257-
:string,
258-
:string, :string,Z:string>
257+
:string,:string, :string,Z:string>
259258
-- !query 27 output
260259
' "
261-
262-
Z
260+
Z
263261

264262

265263
-- !query 28

sql/core/src/test/resources/sql-tests/results/postgreSQL/create_view.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ SELECT * FROM tt1
956956
struct<a:string,b:string,c:decimal(12,2),d:string>
957957
-- !query 83 output
958958
0123456789 abc 42.12 abc
959-
abc 0123456789 42 abcd
959+
abc 0123456789 42.00 abcd
960960

961961

962962
-- !query 84

sql/core/src/test/resources/sql-tests/results/postgreSQL/timestamp.sql.out

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ SELECT '' AS `54`, d1 as `timestamp`,
258258
-- !query 27 schema
259259
struct<54:string,timestamp:timestamp,year:int,month:int,day:int,hour:int,minute:int,second:decimal(8,6)>
260260
-- !query 27 output
261-
1969-12-31 16:00:00 1969 12 31 16 0 0
262-
1997-01-02 00:00:00 1997 1 2 0 0 0
263-
1997-01-02 03:04:05 1997 1 2 3 4 5
264-
1997-02-10 17:32:01 1997 2 10 17 32 1
265-
2001-09-22 18:19:20 2001 9 22 18 19 20
261+
1969-12-31 16:00:00 1969 12 31 16 0 0.000000
262+
1997-01-02 00:00:00 1997 1 2 0 0 0.000000
263+
1997-01-02 03:04:05 1997 1 2 3 4 5.000000
264+
1997-02-10 17:32:01 1997 2 10 17 32 1.000000
265+
2001-09-22 18:19:20 2001 9 22 18 19 20.000000
266266

267267

268268
-- !query 28
@@ -273,11 +273,11 @@ SELECT '' AS `54`, d1 as `timestamp`,
273273
-- !query 28 schema
274274
struct<54:string,timestamp:timestamp,quarter:int,msec:decimal(8,3),usec:int>
275275
-- !query 28 output
276-
1969-12-31 16:00:00 4 0 0
277-
1997-01-02 00:00:00 1 0 0
278-
1997-01-02 03:04:05 1 5000 5000000
279-
1997-02-10 17:32:01 1 1000 1000000
280-
2001-09-22 18:19:20 3 20000 20000000
276+
1969-12-31 16:00:00 4 0.000 0
277+
1997-01-02 00:00:00 1 0.000 0
278+
1997-01-02 03:04:05 1 5000.000 5000000
279+
1997-02-10 17:32:01 1 1000.000 1000000
280+
2001-09-22 18:19:20 3 20000.000 20000000
281281

282282

283283
-- !query 29

sql/core/src/test/resources/sql-tests/results/postgreSQL/window_part4.sql.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ SELECT i,AVG(v) OVER (ORDER BY i ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWIN
4444
-- !query 3 schema
4545
struct<i:int,avg(v) OVER (ORDER BY i ASC NULLS FIRST ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING):decimal(6,5)>
4646
-- !query 3 output
47-
1 2
48-
2 2.5
47+
1 2.00000
48+
2 2.50000
4949
3 NULL
5050
4 NULL
5151

@@ -104,8 +104,8 @@ SELECT SUM(n) OVER (ORDER BY i ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
104104
-- !query 8 schema
105105
struct<sum(n) OVER (ORDER BY i ASC NULLS FIRST ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING):decimal(22,2)>
106106
-- !query 8 output
107-
3
108-
5
107+
3.00
108+
5.00
109109
6.01
110110

111111

0 commit comments

Comments
 (0)