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

JSON Record Readers sometimes infer types too narrow for the values, leading to truncation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.9.1
    • Component/s: Extensions
    • Labels:
      None

      Description

      When using the "Infer Schema" strategy on JSON Record Readers (JsonPathReader, JsonTreeReader, e.g.), all fractional numbers are inferred as floats, meaning there can be some truncation if the value can only truly fit in a double. The inference code is meant to fit the field to the widest of its type, so it should infer fractional fields as doubles rather than floats.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mattyb149 Matt Burgess
                Reporter:
                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