mirror of
https://github.com/asadbek064/hyparquet.git
synced 2026-01-01 17:56:37 +00:00
Fix alltypes_tiny_pages_plain.parquet
This commit is contained in:
parent
9a0f8ad45c
commit
ea3d1a8bbb
@ -15,7 +15,7 @@ export function convert(data, schemaElement) {
|
||||
const ctype = schemaElement.converted_type
|
||||
if (ctype === 'UTF8') {
|
||||
const decoder = new TextDecoder()
|
||||
return data.map(v => decoder.decode(v))
|
||||
return data.map(v => typeof v === 'string' ? v : decoder.decode(v))
|
||||
}
|
||||
if (ctype === 'DECIMAL') {
|
||||
const scaleFactor = schemaElement.scale ? Math.pow(10, schemaElement.scale) : 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user