- Newest
- Most votes
- Most comments
Based on the information provided, there appears to be a compatibility issue with job bookmarks when using Snowflake JDBC connections in AWS Glue 5.0.
For JDBC sources with job bookmarks, AWS Glue has specific requirements:
-
If your script doesn't specify columns as bookmark keys (which yours does with "jobBookmarkKeys"), the table's primary key needs to be sorted in increasing or decreasing order without gaps.
-
When using user-defined bookmarks as keys (as in your case with "CREATED_AT"), these keys should be sorted in increasing or decreasing order (which you've correctly specified with "jobBookmarkKeysSortOrder": "asc").
-
You should avoid using columns with case-sensitive names as bookmark keys.
While your configuration works correctly in Glue 4.0, the error in Glue 5.0 suggests there might be an internal issue with how the newer version interacts with the Snowflake JDBC driver when processing bookmarks.
For Snowflake connections specifically, AWS Glue provides built-in support in version 4.0 and later. Instead of using "custom.jdbc" as the connection type, you might want to try using the native Snowflake connector that AWS Glue provides.
To do this:
- Create a Snowflake connection in AWS Glue Data Catalog (make sure to select "SNOWFLAKE" as the connection type, not "JDBC")
- Use this connection in your Glue job
This approach might avoid the JDBC-specific bookmark issues you're encountering.
If you need to continue using the JDBC approach, you could try:
- Ensuring your Snowflake JDBC driver is compatible with Glue 5.0
- Checking if there are any case sensitivity issues with your bookmark key column
- Temporarily downgrading to Glue 4.0 until the compatibility issue is resolved
As this appears to be a specific interaction issue between Glue 5.0 and the Snowflake JDBC driver when processing bookmarks, you might need to contact AWS Support for further assistance if the native Snowflake connector approach doesn't resolve the issue.
Sources
Troubleshoot AWS Glue job bookmarks | AWS re:Post
Connecting to Snowflake in AWS Glue Studio - AWS Glue
Creating a Snowflake connection - AWS Glue
Hello,
The issue you are facing is likely due to the fact that the AWS Marketplace Snowflake Connector for AWS Glue only supports Glue 4.0, Glue 3.0, and Glue 1.0/2.0, but not Glue 5.0. This means that the connector does not have support for the newer version of Glue that you are using.
You can find more information about the supported versions on the AWS Marketplace page for the Snowflake Connector: https://aws.amazon.com/marketplace/pp/prodview-xdyn5il56d7a2
Instead of using the marketplace connector, I would suggest looking into using the native AWS Glue connection for Snowflake, which is documented here: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect-snowflake-home.html
This native Glue connection for Snowflake supports both Glue 4.0 and Glue 5.0.
However, it's important to note that the native Glue Snowflake connector does not support job bookmarks. This is a known limitation, as documented here: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect-snowflake-home.html#aws-glue-programming-etl-connect-snowflake-limitations
Hence, to answer your question, currently using Snowflake with Job bookmarking is unfortunately not supported, but this feature will be added in the coming days
Relevant content
- asked a year ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
