Airbyte has had several issues related to handling MySQL bigint (especially unsigned) primary keys when syncing to destinations like S3 in Parquet format. The core of the problem is that MySQL's unsigned bigint can exceed the maximum value of a signed 64-bit integer, and improper type mapping or conversion can result in data loss, such as values being written as null or 0 in the destination. There are multiple user reports and GitHub issues describing similar symptoms: - When syncing MySQL data to S3 Parquet, large integer IDs (such as unsigned bigint PKs) may appear as negative floats, null, or 0 in the destination files. This is likely due to the Parquet/Avro schema not supporting the full range of MySQL unsigned bigint, or the connector mapping the type incorrectly during the sync process. One user specifically noted that IDs in Zendesk data (which can be large integers) were not preserved correctly in S3 Parquet, supporting this diagnosis [Source Zendesk Support: Negative IDs / integers for Zendesk Support connection](
https://discuss.airbyte.io/t/2381). - Another related issue is that MySQL bigint columns may be mapped to int columns in other destinations (like Databricks), causing overflows or truncation [Data type mapping error: bigint columns in MySQL map to int columns in Databricks](
https://github.com/airbytehq/airbyte/issues/25944). - There are also known issues with the MySQL connector's handling of TINYINT(1) and boolean values, but these are separate from the bigint unsigned PK problem. Currently, the knowledge sources do not indicate a definitive fix for this specific unsigned bigint PK to S3 Parquet issue. Workarounds may include: - Using a lower version of the MySQL connector if a regression is suspected (as some users have found downgrading resolves related type mapping issues). - Monitoring or participating in the relevant GitHub issues for updates and fixes. If you are experiencing this issue, it is recommended to follow or comment on the related GitHub issues to help prioritize a fix and to check for any connector updates that address type mapping for large unsigned integers. I'm sorry, but there is no explicit confirmation in the knowledge sources of a permanent fix for this specific problem as of now. If you need a workaround, consider using a different destination format (like JSON) or a different connector version, and keep an eye on the Airbyte changelogs and GitHub issues for updates.