From 561f06f70186b113667870ac3740499bdd7d45b7 Mon Sep 17 00:00:00 2001 From: Kenny Daniel Date: Sat, 18 May 2024 18:33:15 -0700 Subject: [PATCH] Int_Map test is redundant with nullable.impala.parquet --- test/files/Int_Map.json | 9 ---- test/files/Int_Map.metadata.json | 83 ------------------------------- test/files/Int_Map.parquet | Bin 379 -> 0 bytes test/read.test.js | 2 +- 4 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 test/files/Int_Map.json delete mode 100644 test/files/Int_Map.metadata.json delete mode 100644 test/files/Int_Map.parquet diff --git a/test/files/Int_Map.json b/test/files/Int_Map.json deleted file mode 100644 index c9c37aa..0000000 --- a/test/files/Int_Map.json +++ /dev/null @@ -1,9 +0,0 @@ -[ - [{ "k1": 1, "k2": 100 }], - [{ "k1": 2, "k2": null }], - [{ }], - [{ }], - [{ }], - [null], - [{ "k1": null, "k3": null }] -] diff --git a/test/files/Int_Map.metadata.json b/test/files/Int_Map.metadata.json deleted file mode 100644 index 7bcbaa6..0000000 --- a/test/files/Int_Map.metadata.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "version": 1, - "created_by": "DuckDB", - "metadata_length": 243, - "num_rows": 7, - "row_groups": [ - { - "columns": [ - { - "file_offset": 0, - "meta_data": { - "codec": "SNAPPY", - "data_page_offset": 4, - "encodings": ["PLAIN"], - "num_values": 10, - "path_in_schema": ["int_map", "key_value", "key"], - "statistics": { - "max": "k3", - "min": "k1", - "max_value": "k3", - "min_value": "k1" - }, - "total_compressed_size": 64, - "total_uncompressed_size": 82, - "type": "BYTE_ARRAY" - } - }, - { - "file_offset": 0, - "meta_data": { - "codec": "SNAPPY", - "data_page_offset": 68, - "encodings": ["PLAIN"], - "num_values": 10, - "path_in_schema": ["int_map", "key_value", "value"], - "statistics": { - "max": 100, - "min": 1, - "max_value": 100, - "min_value": 1 - }, - "total_compressed_size": 60, - "total_uncompressed_size": 59, - "type": "INT32" - } - } - ], - "file_offset": 4, - "num_rows": 7, - "total_byte_size": 74752 - } - ], - "schema": [ - { - "name": "duckdb_schema", - "num_children": 1, - "repetition_type": "REQUIRED" - }, - { - "converted_type": "MAP", - "name": "int_map", - "num_children": 1, - "repetition_type": "OPTIONAL" - }, - { - "name": "key_value", - "num_children": 2, - "repetition_type": "REPEATED" - }, - { - "converted_type": "UTF8", - "name": "key", - "repetition_type": "REQUIRED", - "type": "BYTE_ARRAY" - }, - { - "converted_type": "INT_32", - "name": "value", - "repetition_type": "OPTIONAL", - "type": "INT32" - } - ] -} diff --git a/test/files/Int_Map.parquet b/test/files/Int_Map.parquet deleted file mode 100644 index 93d1fe9321db6af56119a8b9e47012ff554c9a54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 379 zcmZ{g!D_-l5Qb;R%^D^3s0SbEQZDOu_&F5KsuY>~iv1`ltkgMC7_kJOwwN zy5oC8rj~Tyz^@zl*5O@7R0~fAf>pucj0o*&1m>dHt*hc8ds{!2o173vXxdLN+ia7+ z5;`qSrz$_Peg3>FNdg5Cm=<>;=MkatjwjJ2=$;MjAcl|vOJLJKn}6J4gu1W4g|0>H zj}2BsjwC&0ewX9%4F5ao=&;xC@uwIY>Gm { }) it('read a map-like column', async () => { - const file = fileToAsyncBuffer('test/files/Int_Map.parquet') + const file = fileToAsyncBuffer('test/files/nullable.impala.parquet') await parquetRead({ file, columns: ['int_map'],