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: 43
2
+ -- Number of queries: 48
3
3
4
4
5
5
-- !query 0
@@ -351,3 +351,43 @@ select cast('1.0 ' as DEC)
351
351
struct<CAST(1.0 AS DECIMAL(10,0)):decimal(10,0)>
352
352
-- !query 42 output
353
353
NULL
354
+
355
+
356
+ -- !query 43
357
+ select cast(1.0 as real)
358
+ -- !query 43 schema
359
+ struct<CAST(1.0 AS FLOAT):float>
360
+ -- !query 43 output
361
+ 1.0
362
+
363
+
364
+ -- !query 44
365
+ select cast('1' as real)
366
+ -- !query 44 schema
367
+ struct<CAST(1 AS FLOAT):float>
368
+ -- !query 44 output
369
+ 1.0
370
+
371
+
372
+ -- !query 45
373
+ select cast(1.0 as numeric)
374
+ -- !query 45 schema
375
+ struct<CAST(1.0 AS DECIMAL(10,0)):decimal(10,0)>
376
+ -- !query 45 output
377
+ 1
378
+
379
+
380
+ -- !query 46
381
+ select cast(1.0 as numeric(3))
382
+ -- !query 46 schema
383
+ struct<CAST(1.0 AS DECIMAL(3,0)):decimal(3,0)>
384
+ -- !query 46 output
385
+ 1
386
+
387
+
388
+ -- !query 47
389
+ select cast(1.08 as numeric(3,1))
390
+ -- !query 47 schema
391
+ struct<CAST(1.08 AS DECIMAL(3,1)):decimal(3,1)>
392
+ -- !query 47 output
393
+ 1.1
You can’t perform that action at this time.
0 commit comments