mirror of
https://github.com/asadbek064/hyparquet.git
synced 2025-12-05 22:41:55 +00:00
Convert boolean column
This commit is contained in:
parent
66b832d5bb
commit
6a75a960da
@ -53,6 +53,7 @@ export function readDataPageV2(compressedBytes, ph, schemaPath, columnMetadata,
|
||||
// assert(columnMetadata.type === 'BOOLEAN')
|
||||
dataPage = new Array(nValues)
|
||||
readRleBitPackedHybrid(pageReader, 1, 0, dataPage)
|
||||
dataPage = dataPage.map(x => !!x)
|
||||
} else if (
|
||||
daph2.encoding === 'PLAIN_DICTIONARY' ||
|
||||
daph2.encoding === 'RLE_DICTIONARY'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[
|
||||
["abc", 1, 2, 1, [1, 2, 3]],
|
||||
["abc", 2, 3, 1, null],
|
||||
["abc", 3, 4, 1, null],
|
||||
[null, 4, 5, 0, [1, 2, 3]],
|
||||
["abc", 5, 2, 1, [1, 2]]
|
||||
["abc", 1, 2, true, [1, 2, 3]],
|
||||
["abc", 2, 3, true, null],
|
||||
["abc", 3, 4, true, null],
|
||||
[null, 4, 5, false, [1, 2, 3]],
|
||||
["abc", 5, 2, true, [1, 2]]
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user