Class NdJsonSchemaInferrer
java.lang.Object
org.elasticsearch.xpack.esql.datasource.ndjson.NdJsonSchemaInferrer
Infers schema from NDJSON files by reading the first N lines.
- Flattens nested objects using dot notation
- Detects arrays as multi-value fields
- Marks fields as nullable when null or missing values are encountered
Types: KEYWORD, INTEGER, LONG, DOUBLE, BOOLEAN, DATETIME.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeinferSchema(InputStream inputStream, int maxLines) Infers schema from an NDJSON input stream, reading up to maxLines.
-
Field Details
-
DATE_FORMATTER
-
-
Method Details
-
inferSchema
Infers schema from an NDJSON input stream, reading up to maxLines.- Throws:
IOException
-
attribute
-