You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,22 +171,6 @@ await parquetRead({
171
171
})
172
172
```
173
173
174
-
### Returned row format
175
-
176
-
By default, the `onComplete` function returns an **array** of values for each row: `[value]`. If you would prefer each row to be an **object**: `{ columnName: value }`, set the option `rowFormat` to `'object'`.
177
-
178
-
```javascript
179
-
import { parquetRead } from'hyparquet'
180
-
181
-
awaitparquetRead({
182
-
file,
183
-
rowFormat:'object',
184
-
onComplete:data=>console.log(data),
185
-
})
186
-
```
187
-
188
-
The `parquetReadObjects` function defaults to `rowFormat: 'object'`.
189
-
190
174
### Binary columns
191
175
192
176
Hyparquet defaults to decoding binary columns as utf8 text strings. A parquet `BYTE_ARRAY` column may contain arbitrary binary data or utf8 encoded text data. In theory, a column should be annotated as [LogicalType](https://github.com/apache/parquet-format/blob/master/LogicalTypes.md) STRING if it contains utf8 text. But in practice, many parquet files omit this annotation. Hyparquet's default decoding behavior can be disabled by setting the `utf8` option to `false`. The `utf8` option only affects `BYTE_ARRAY` columns _without_ an annotation.
0 commit comments