You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Lehel44 (via GitHub)" <gi...@apache.org> on 2024/02/27 05:28:45 UTC

Re: [PR] NIFI-12828 Add mapping for BIT SQL Type in DataTypeUtils [nifi]

Lehel44 commented on PR #8445:
URL: https://github.com/apache/nifi/pull/8445#issuecomment-1965816504

   @ravinarayansingh Thanks for making this change. However, I'd like to address a concern regarding its scope as this change only adresses a subset of the issue. Postgres maps `BOOLEAN` types to `BIT` due to historical reasons. By mapping `java.sql.Types.BIT` to `RecordFieldType.Boolean` in `DataTypeUtils::getDataTypeFromSQLTypeValue`, we may encounter a scenario where a field defined as `BIT` in the PostgreSQL table with a size specification such as `BIT(n)` where `n>2` cannot be represented as a `BOOLEAN` type, and is not appropriately converted by the JDBC driver. Consequently, the schema for such a field will also be defined as Boolean. @mattyb149, do you have any thoughts on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org