Fix alltypes_tiny_pages_plain.parquet

This commit is contained in:
Kenny Daniel 2024-02-26 23:26:29 -08:00
parent 9a0f8ad45c
commit ea3d1a8bbb
No known key found for this signature in database
GPG Key ID: 90AB653A8CAD7E45

@ -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