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

DataTypeUtils.isBigIntTypeCompatible always returns false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.2
    • None
    • None

    Description

      Because it checks null value wrongly:

          public static boolean isBigIntTypeCompatible(final Object value) {
              return value == null && (value instanceof BigInteger || value instanceof Long);
          }
      

      should be:

          public static boolean isBigIntTypeCompatible(final Object value) {
              // We need something similar to isIntegral, but the value can be larger than the max long.
              return isNumberTypeCompatible(value, s -> somethingSimilarToIsIntegral(s))
          }
      

      Attachments

        Issue Links

          Activity

            People

              ijokarumawak Koji Kawamura
              ijokarumawak Koji Kawamura
              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 - 1h 20m
                  1h 20m