Hi, I’m using Airbyte Open Source (MySQL → BigQuer...
# replication-troubleshooting
r
Hi, I’m using Airbyte Open Source (MySQL → BigQuery). Is there a way to add a server-side/installation-level configuration to perform simple transforms during sync—e.g., force MySQL TINYINT(1) to be treated as INTEGER (not boolean) in CDC? If yes, where/how do I configure this?
k
Based on the available knowledge sources, Airbyte Open Source does not provide a built-in, server-side or installation-level configuration to globally override how MySQL TINYINT(1) is mapped (e.g., to force it to be treated as INTEGER instead of boolean) during syncs, including for CDC (Change Data Capture) scenarios. By default, Airbyte’s MySQL source connector maps TINYINT(1) to boolean, following MySQL’s convention where TINYINT(1) is often used for boolean values. This behavior is hardcoded and, as of now, cannot be changed via a global configuration or environment variable. The only way to alter this mapping is to modify the connector’s code or implement custom normalization logic, which can be complex and must be maintained for each use case. There is no documented method to set this transformation at the server or installation level for all syncs or connectors in Airbyte Open Source. This limitation is acknowledged in both community discussions and support responses, and users facing this issue are advised to consider custom connector modifications or normalization as a workaround, though this is not a simple configuration change and must be done per connector or stream basis [Forum: MySql Source Connector type tinyint(1)](https://discuss.airbyte.io/t/2171), [Github Issue: MySQL CDC still in boolean when destination boolean](https://github.com/airbytehq/airbyte/issues/42476). Additionally, Airbyte Open Source does not support custom transformations at the platform level (such as dbt post-sync transformations) that could be used to automate this mapping globally—this feature is only available in Airbyte Cloud, and even there, it does not address source-side type mapping during extraction or CDC [Core Concepts: Custom Transformations](https://docs.airbyte.com/platform/using-airbyte/core-concepts#custom-transformations). Summary: There is currently no server-side or installation-level configuration in Airbyte Open Source to force MySQL TINYINT(1) to be treated as INTEGER (not boolean) during CDC. Any such transformation must be handled by customizing the connector or post-processing the data after sync.
r
@kapa.ai In OSS, is there any connector-level way to disable/scope Debezium’s TinyIntOneToBooleanConverter (e.g., boolean.selector) so CDC keeps numeric? If not, is the recommended workaround Incremental (non-CDC) + periodic Full Refresh | Overwrite until we can change the source type? If a fork is required, where in the MySQL source should we inject the Debezium config?
k
A message from kapa.ai
Based on the provided knowledge sources, there is no documented connector-level configuration in Airbyte Open Source to disable or scope Debezium’s
TinyIntOneToBooleanConverter
(such as via a
boolean.selector
or similar setting) for the MySQL CDC connector. The default behavior is to treat MySQL
TINYINT(1)
as boolean, and this is hardcoded in the connector’s implementation. Users have reported that even when setting JDBC parameters like
tinyInt1isBit=False
, the CDC process (Debezium) still interprets
TINYINT(1)
as boolean during change event streaming, leading to type mismatches in the destination ([Github Issue: MySQL CDC still in boolean when destination boolean](https://github.com/airbytehq/airbyte/issues/42476), [Forum: MySql Source Connector type tinyint(1)](https://discuss.airbyte.io/t/2171)). Workarounds: - Incremental (non-CDC) + Full Refresh: Yes, using standard Incremental sync (not CDC) with periodic Full Refresh | Overwrite is a recommended workaround if you cannot change the source type and need to preserve numeric values. However, this approach does not capture deletes and may not be suitable for large tables or high-frequency changes ([Incremental Sync - Append: Known Limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)). - Change Source Type: The most robust solution is to alter the source schema to use a different type (e.g.,
TINYINT(2)
or higher) for columns that should remain numeric. If a fork is required: The knowledge sources do not provide explicit instructions on where to inject custom Debezium configuration in the Airbyte MySQL source connector. However, users have noted that the conversion is handled by Debezium’s configuration within the connector, and modifying this would require changes in the connector’s codebase, specifically in how Debezium is initialized and which converters are registered ([Github Issue: MySQL CDC still in boolean when destination boolean](https://github.com/airbytehq/airbyte/issues/42476)). There is no documentation on supporting a
boolean.selector
or similar override in the current Airbyte OSS implementation. Summary: - There is no connector-level config to disable Debezium’s
TinyIntOneToBooleanConverter
in Airbyte OSS. - The recommended workaround is to use Incremental (non-CDC) + Full Refresh, or change the source column type. - If you must fork, you would need to modify the Debezium initialization in the MySQL source connector, but the exact injection point is not documented in the provided sources. If you need more detailed guidance on forking, you may need to consult the Airbyte or Debezium source code directly, as the knowledge sources do not cover this in detail.