File tree Expand file tree Collapse file tree 1 file changed +41
-1
lines changed
sql/core/src/test/resources/sql-tests/results Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change 1
1
-- Automatically generated by SQLQueryTestSuite
2
- -- Number of queries: 46
2
+ -- Number of queries: 51
3
3
4
4
5
5
-- !query 0
@@ -378,3 +378,43 @@ struct<CAST(
378
378
xyz AS BOOLEAN):boolean>
379
379
-- !query 45 output
380
380
NULL
381
+
382
+
383
+ -- !query 46
384
+ select cast(1.0 as real)
385
+ -- !query 46 schema
386
+ struct<CAST(1.0 AS FLOAT):float>
387
+ -- !query 46 output
388
+ 1.0
389
+
390
+
391
+ -- !query 47
392
+ select cast('1' as real)
393
+ -- !query 47 schema
394
+ struct<CAST(1 AS FLOAT):float>
395
+ -- !query 47 output
396
+ 1.0
397
+
398
+
399
+ -- !query 48
400
+ select cast(1.0 as numeric)
401
+ -- !query 48 schema
402
+ struct<CAST(1.0 AS DECIMAL(10,0)):decimal(10,0)>
403
+ -- !query 48 output
404
+ 1
405
+
406
+
407
+ -- !query 49
408
+ select cast(1.0 as numeric(3))
409
+ -- !query 49 schema
410
+ struct<CAST(1.0 AS DECIMAL(3,0)):decimal(3,0)>
411
+ -- !query 49 output
412
+ 1
413
+
414
+
415
+ -- !query 50
416
+ select cast(1.08 as numeric(3,1))
417
+ -- !query 50 schema
418
+ struct<CAST(1.08 AS DECIMAL(3,1)):decimal(3,1)>
419
+ -- !query 50 output
420
+ 1.1
You can’t perform that action at this time.
0 commit comments