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

DatabaseTableSchemaRegistry improvement to handle BIT/Boolean Type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.25.0
    • 2.0.0-M3, 1.26.0
    • None

    Description

      The issue stems from the fact that for the PostgreSQL JDBC driver, the Boolean type is mapped to java.sql.Types.BIT, not BOOLEAN. This causes the line columnResultSet.getInt("DATA_TYPE") to return -7, which corresponds to BIT, and DataTypeUtils.getDataTypeFromSQLTypeValue(dataType) to return null, leading to a null pointer exception.

      Attachments

        Issue Links

          Activity

            People

              rnsingh RAVINARAYAN SINGH
              rnsingh RAVINARAYAN SINGH
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2h
                  2h