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

JSON Schema Inference infers long type when all values fit in integer type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • Extensions
    • None

    Description

      For CSV and XML Schema Inference engines, integral values are checked to see if they fit into an integer type, and if so, the engine infers "int" type, otherwise it infers "long" type. However the JSON inference engine only checks for "bigint" and everything else is "long".

      It should also check to see if the values fit in an integer type and infer "int" in that case.

      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