Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8259

CSVSchemaInference should infer fields as strings if no records are present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0, 1.13.1
    • Extensions
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m