Walid-peach commented on issue #19024:
URL: https://github.com/apache/airflow/issues/19024#issuecomment-946578590


   in [class 
MySQLToGCSOperator](https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/transfers/mysql_to_gcs.html#MySQLToGCSOperator)
   the definition  `type_map = {
           FIELD_TYPE.BIT: '**INTEGER**', ....` is incompatible with the 
function `def convert_type(self, value, schema_type: str):
             ......
             if schema_type == "INTEGER":
                   value = int.from_bytes(value, "big")
               else:
                   value = base64.standard_b64encode(value).decode('ascii')` 
   which lead us to the error 400 when we want to transfer the table from GCS 
to BigQuery
   `google.api_core.exceptions.BadRequest: 400 Error while reading data, error 
message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. 
Please look into the errors[] collection for more details.`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to