should be it
This commit is contained in:
38
external/duckdb/test/sql/copy/parquet/float16.test
vendored
Normal file
38
external/duckdb/test/sql/copy/parquet/float16.test
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# name: test/sql/copy/parquet/float16.test
|
||||
# description: Test reading half-floats
|
||||
# group: [parquet]
|
||||
|
||||
require parquet
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
query III
|
||||
select type, type_length, logical_type from parquet_schema('data/parquet-testing/float16.parquet') where name = 'x'
|
||||
----
|
||||
FIXED_LEN_BYTE_ARRAY 2 Float16Type()
|
||||
|
||||
query I
|
||||
select typeof(x) from read_parquet('data/parquet-testing/float16.parquet') limit 1;
|
||||
----
|
||||
FLOAT
|
||||
|
||||
query I
|
||||
select x from read_parquet('data/parquet-testing/float16.parquet') order by x;
|
||||
----
|
||||
-inf
|
||||
0.0
|
||||
0.5
|
||||
1.0
|
||||
1.5
|
||||
inf
|
||||
nan
|
||||
-nan
|
||||
|
||||
query I
|
||||
select x from read_parquet('data/parquet-testing/float16.parquet') where x > 1.1 order by x;
|
||||
----
|
||||
1.5
|
||||
inf
|
||||
nan
|
||||
-nan
|
||||
Reference in New Issue
Block a user