-
|
I have a data in NDJSON format. So is it possible to specify N rows which should be used to infer schema? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Could you provide a small reproducible example? I’m not familiar with this area, but I may be able to help with debugging. |
Beta Was this translation helpful? Give feedback.
-
|
Should be able to use datafusion/datafusion/core/src/datasource/file_format/options.rs Lines 445 to 468 in d24eb4a (#18920 adds a nicer API to configure this setting) |
Beta Was this translation helpful? Give feedback.
Should be able to use
schema_infer_max_recordsfromNdJsonReadOptionsto specify how many rows to use for inference now:datafusion/datafusion/core/src/datasource/file_format/options.rs
Lines 445 to 468 in d24eb4a