Matt Burgess created NIFI-8259:
----------------------------------
Summary: CSVSchemaInference should infer fields as strings if no
records are present
Key: NIFI-8259
URL: https://issues.apache.org/jira/browse/NIFI-8259
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Reporter: Matt Burgess
Assignee: Matt Burgess
Even though the field names may be present in a flow file whose schema is to be
inferred by CSVReader, if there are no records in the flow file the data types
of the fields cannot be ascertained. This causes the schema to be empty and can
result in unwanted behavior in processors such as QueryRecord and ConvertRecord.
Instead the schema inference should assume all fields are of string types, such
that a "best-effort" schema is generated for use by the processors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)