- Newest
- Most votes
- Most comments
Based on your testing, the issue appears to be specific to the combination of BigQuery as source and Redshift as target in your AWS Glue job. Since both connections work independently (BigQuery to S3 and S3 to Redshift), this suggests a compatibility or configuration issue when these two connectors interact.
The error "Error creating destination table using the following query" indicates that AWS Glue is having trouble with the query execution or table creation process when moving data from BigQuery to Redshift.
Here are some recommendations to resolve this issue:
-
Enable query push-down for BigQuery: Configure your BigQuery connector to use query push-down by setting
viewsEnabledtotrueand specifying amaterializationDatasetwhere your service account has table creation permissions. This helps optimize the data extraction process. -
Use an intermediate S3 stage: Since both BigQuery-to-S3 and S3-to-Redshift work independently, consider restructuring your job to use S3 as an intermediate staging area. This two-step approach (BigQuery → S3 → Redshift) may be more reliable than a direct transfer.
-
Check data type compatibility: Ensure that the data types in your BigQuery custom query are compatible with Redshift. Some BigQuery data types may not have direct equivalents in Redshift, which could cause table creation failures.
-
Review connector versions: Make sure you're using compatible and up-to-date versions of both the Google BigQuery Connector and the Redshift connector for AWS Glue.
-
Examine the full error logs: Check CloudWatch logs for more detailed error messages that might provide specific information about which part of the query or table creation is failing.
Sources
Push down queries when using the Google BigQuery Connector for AWS Glue | AWS re:Post
Relevant content
- asked 4 years ago
- asked a year ago
