Hi team, I have a urgent requirement when i migrat...
# replication-troubleshooting
v
Hi team, I have a urgent requirement when i migrate data from mysql to Bigquery json field formats are typecasting to String how can i solve this issue Can i solve this by Using cdk, now i am using airbyte which is hosted in K8s
s
Hey @VISHAL B thanks for the question. A couple of questions: What versions are you using for the MySQL and BigQuery connectors? what fields are being typecast to strings? This is the data mapping table for the MySQL source: https://docs.airbyte.com/integrations/sources/mysql/#data-type-mapping Let me know if this helps!
v
• I hope my airbyte version is 0.40.28 • I’m migrating data from Mysql(1.0.18) to Bigquery(1.2.9) • the json fields in mysql are typecasted to strings @Saj Dider (Airbyte)
In the above documentation its mentioned that json will be converted to serialized json string but i need it as json in destination, how can i do that is there any way @Saj Dider (Airbyte)
@Saj Dider (Airbyte) any update?
@Saj Dider (Airbyte) Please do consider this, this error persist for long time
м
Hi, As far as I know, there is no option to configure default normalization to select the proper data type in AirByte UI, so you have few options: use another specific tool or build transformation on your own. 1. You can move and transform data using Datuum.ai: setup postgres as source connection, bigquery as target connection and do the mapping. Datuum.ai detects and casts data types from string to int/double/boolean/etc automatically. Also you can change data types manually if needed. Then, Datuum generates a complete Airbyte pipeline for you 2. You may build a pipeline manually in AirByte transformations. I guess you still need basic airbyte normalization, but you can add your own transformation (https://docs.airbyte.com/operator-guides/transformation-and-normalization/transformations-with-sql) and do manual casts to required data type (make it safe to handle errors): https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-reference. Although it may take time to set up a dbt project, create models and configure the pipeline, if you are not experienced with it yet. Hope it helps!