mirror of
https://github.com/asadbek064/hyparquet.git
synced 2026-01-04 02:36:36 +00:00
struct_strings.parquet
This commit is contained in:
parent
7d1d877c9f
commit
06578a9419
@ -49,7 +49,7 @@ export function assembleLists(
|
||||
currentContainer = containerStack.at(-1)
|
||||
|
||||
// Go deeper to end of definition level
|
||||
while (currentDepth < repetitionPath.length - 2 && currentDefLevel < def) {
|
||||
while (currentDepth < repetitionPath.length - 2 && (currentDefLevel < def || repetitionPath[currentDepth + 1] === 'REQUIRED')) {
|
||||
currentDepth++
|
||||
if (repetitionPath[currentDepth] !== 'REQUIRED') {
|
||||
/** @type {any[]} */
|
||||
|
||||
4
test/files/struct_strings.json
Normal file
4
test/files/struct_strings.json
Normal file
@ -0,0 +1,4 @@
|
||||
[
|
||||
[{ "f64_field": null, "str_field": "hello" }],
|
||||
[{ "f64_field": 1.23, "str_field": null }]
|
||||
]
|
||||
90
test/files/struct_strings.metadata.json
Normal file
90
test/files/struct_strings.metadata.json
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
"version": 1,
|
||||
"schema": [
|
||||
{
|
||||
"name": "test",
|
||||
"num_children": 1
|
||||
},
|
||||
{
|
||||
"repetition_type": "REQUIRED",
|
||||
"name": "inner",
|
||||
"num_children": 2
|
||||
},
|
||||
{
|
||||
"type": "BYTE_ARRAY",
|
||||
"repetition_type": "OPTIONAL",
|
||||
"name": "str_field",
|
||||
"converted_type": "UTF8",
|
||||
"logical_type": {
|
||||
"type": "STRING"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "DOUBLE",
|
||||
"repetition_type": "OPTIONAL",
|
||||
"name": "f64_field"
|
||||
}
|
||||
],
|
||||
"num_rows": 2,
|
||||
"row_groups": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"file_offset": 4,
|
||||
"meta_data": {
|
||||
"type": "BYTE_ARRAY",
|
||||
"encodings": [
|
||||
"RLE",
|
||||
"PLAIN"
|
||||
],
|
||||
"path_in_schema": [
|
||||
"inner",
|
||||
"str_field"
|
||||
],
|
||||
"codec": "SNAPPY",
|
||||
"num_values": 2,
|
||||
"total_uncompressed_size": 32,
|
||||
"total_compressed_size": 34,
|
||||
"key_value_metadata": [],
|
||||
"data_page_offset": 4,
|
||||
"statistics": {
|
||||
"null_count": 1,
|
||||
"distinct_count": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"file_offset": 38,
|
||||
"meta_data": {
|
||||
"type": "DOUBLE",
|
||||
"encodings": [
|
||||
"RLE",
|
||||
"PLAIN"
|
||||
],
|
||||
"path_in_schema": [
|
||||
"inner",
|
||||
"f64_field"
|
||||
],
|
||||
"codec": "SNAPPY",
|
||||
"num_values": 2,
|
||||
"total_uncompressed_size": 31,
|
||||
"total_compressed_size": 33,
|
||||
"key_value_metadata": [],
|
||||
"data_page_offset": 38,
|
||||
"statistics": {
|
||||
"null_count": 1,
|
||||
"distinct_count": 1,
|
||||
"max_value": 1.23,
|
||||
"min_value": 1.23
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_byte_size": 0,
|
||||
"num_rows": 2
|
||||
}
|
||||
],
|
||||
"key_value_metadata": [],
|
||||
"created_by": "parquet-go",
|
||||
"metadata_length": 203
|
||||
}
|
||||
BIN
test/files/struct_strings.parquet
Normal file
BIN
test/files/struct_strings.parquet
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user