DBZ-2333 Rebase and merge of update to mapping for BIT and BIT VARYING

This commit is contained in:
Tova Cohen 2020-08-03 13:48:16 -04:00 committed by Chris Cranford
parent f053a24ea1
commit b0d9b4dc5d

View File

@ -936,10 +936,15 @@ The following table describes how the connector maps basic PostgreSQL data types
|n/a
|
|`BIT( > 1)`, `BIT VARYING[(M)]`
|`BIT( > 1)`
|`BYTES`
|`io.debezium.data.Bits`
|The `length` schema parameter contains an integer that represents the number of bits. The resulting `byte[]` contains the bits in little-endian form, sized to contain at least the specified number of bits. For example, `numBytes = n/8 + (n%8== 0 ? 0 : 1)` where `n` is the number of bits.
|The `length` schema parameter contains an integer that represents the number of bits. The resulting `byte[]` contains the bits in little-endian form and is sized to contain the specified number of bits. For example, `numBytes = n/8 + (n % 8 == 0 ? 0 : 1)` where `n` is the number of bits.
|`BIT VARYING[(M)]`
|`BYTES`
|`io.debezium.data.Bits`
|The `length` schema parameter contains an integer that represents the number of bits (2^31 - 1 in case no length is given for the column). The resulting `byte[]` contains the bits in little-endian form and is sized based on the content. The specified size `(M)`` is stored in the length parameter of the `io.debezium.data.Bits` type.
|`SMALLINT`, `SMALLSERIAL`
|`INT16`