I’m encountering an issue while migrating data fro...
# replication-troubleshooting
r
I’m encountering an issue while migrating data from MySQL to BigQuery using the Medallion architecture, and I need some help troubleshooting it. I’m using Airbyte open source for data extraction from MySQL to BigQuery, where my data extraction follows the bronze layer (raw data). During the initial load, everything went fine: • Data loaded: 21.51 GB • Records loaded: 20,489,190 • Duration: 2h 55m 42s However, after running the process (scheduled to run hourly), I received the following warning:
Warning from source: invalid number value true
java.lang.IllegalArgumentException: invalid number value true
I followed a suggestion from a previous conversation where I added the following JDBC parameter to the Airbyte source configuration:
treat.tinyint.as.boolean=false
But the error still persists. The full JDBC URL I am using is:
tinyInt1isBit=false&useCursorFetch=true&defaultFetchSize=5000&treat.tinyint.as.boolean=false
The problem occurs with a column that has the tinyint(1) data type in MySQL. The values in this column range from 0 to 4, which is expected. How can I configure Airbyte or the JDBC connection to ensure that the
tinyint(1)
column in MySQL is treated as an
INTEGER
in BigQuery, instead of being interpreted as a boolean?
c
Same issue here! I saw a discussion on Github with no answer, any tip? @Przemysław Dąbek
k
Sorry @Cris Navas, I'm not enabled for this channel yet. Please contact your workspace admins to help get me set up. 👋
p
@Cris Navas I started seeing similar issues for other data types for source-mysql connector newer than 3.7.3. If you use older MySQL, up to 8.0, you might try to use source-mysql connector 3.7.3, but this is only for Airbyte OSS (self-hosted). I don't have any suggestions for Airbyte Cloud.