DBZ-3208 Document Oracle support for Boolean types

This commit is contained in:
Chris Cranford 2021-03-01 14:25:37 -05:00 committed by Gunnar Morling
parent 55853a691d
commit 750d488bb2

View File

@ -810,10 +810,6 @@ Contains a structure with two fields: `scale` of type `INT32` that contains the
|`INT64` |`INT64`
|n/a |n/a
|`NUMBER(1,0)`
|`BOOLEAN`
|n/a
|`NUMBER[(P[, *])]` |`NUMBER[(P[, *])]`
|`STRUCT` |`STRUCT`
|`io.debezium.data.VariableScaleDecimal` + |`io.debezium.data.VariableScaleDecimal` +
@ -856,6 +852,24 @@ Contains a structure with two fields: `scale` of type `INT32` that contains the
|=== |===
[id="oracle-boolean-types"]
=== Boolean types
Oracle does not natively have support for a `BOOLEAN` data type; however,
it is common practice to use other data types with certain semantics to simulate the concept of a logical `BOOLEAN` data type.
The operator can configure the out-of-the-box `NumberOneToBooleanConverter` custom converter that would either map all `NUMBER(1)` columns to a `BOOLEAN` or if the `selector` parameter is set,
then a subset of columns could be enumerated using a comma-separated list of regular expressions.
Following is an example configuration:
[source]
----
converters=boolean
boolean.type=io.debezium.connector.oracle.converters.NumberOneToBooleanConverter
boolean.selector=.*MYTABLE.FLAG,.*.IS_ARCHIVED
----
[id="oracle-decimal-types"] [id="oracle-decimal-types"]
=== Decimal types === Decimal types
The setting of the Oracle connector configuration property, `decimal.handling.mode` determines how the connector maps decimal types. The setting of the Oracle connector configuration property, `decimal.handling.mode` determines how the connector maps decimal types.