Francis Carr
11/26/2025, 5:00 PMairbyte/source-snowflake on version 1.0.8. The source table within Snowflake is very large and it seems I am hitting a credentials timeout of around 6 hours.
What seems to be happening;
1. Airbyte makes a query for all data from the Snowflake table and this is staged internally within an S3 bucket
2. Airbyte then starts transferring this data out of the bucket piece-by-piece sending it from the Source to the Destination, the destination being BigQuery
3. After 6 hours or so, sometimes longer, we run into a 403 Forbidden on reading the data and the job within Airbyte runs another attempt.
a. After 5 attemps of around 6 hours it gives up and reports it as a failure.
b. When the job starts again we seem to start from the very beginning; even though the job has written a lot of records to the BigQuery destination, it doesn't seem to save where it has got to in the Source. The sync mode is Incremental | Append with a Date as the Cursor
Has anyone had any similar experiences with this type of Snowflake timeout? It sounds like it could be something that can be configured on the Snowflake side, but we aren't sure what configuration we could use to control this. There is documentation around the 6 hour timeout in the Using Persisted Query Results from Snowflake but it doesn't really say much beyond A new token can be retrieved to access results while they are still in cache.
We are also not sure what we can do on our side as this seems to be internal to the JDBC driver that reads from Snowflake. Maybe there is a JDBC query param we could add? We know we can break up this data and there are lots of workarounds like that, but it still avoids the core issue that can arise again. Any recommendations would be greatly appreciated! 🙏kapa.ai
11/26/2025, 5:01 PM403 with Request has expired match exactly what another user reported for Snowflake source → Postgres: the S3 request Expires timestamp passed, and the JDBC driver did not successfully refresh the token mid‑stream. [[Snowflake 403 issue](https://discuss.airbyte.io/t/3071)] - That behavior was captured as an open Airbyte GitHub issue (Snowflake S3 "Request has expired"), with the expectation that “the driver must refresh the S3 access token”, but there is no resolution documented in the sources you provided. [[Snowflake 403 GH issue](https://discuss.airbyte.io/t/3071)] - The Snowflake source supports incremental sync using a cursor and state, but the docs only describe generic WHERE cursor_field > last_cursor_value behavior and do not mention mid‑sync checkpointing for very large streams. [[Snowflake incremental](https://docs.airbyte.com/integrations/sources/snowflake#incremental-sync)] - In other connectors with CDC/large tables, similar long‑running / large‑volume issues are typically handled by: - upgrading to the latest connector versions - reducing the amount of data per connection (fewer tables or smaller ranges) - tuning buffer/concurrency parameters and using staging on the destination [[Postgres CDC/Snowflake backpressure](https://discuss.airbyte.io/t/4373); [MySQL large‑table instability](https://discuss.airbyte.io/t/2991); [Snowflake large sync cloud](https://discuss.airbyte.io/t/757)] The knowledge sources do not document: - Any Snowflake‑side configuration that extends or disables the 6‑hour lifetime of the S3 result URLs used by the JDBC driver. - Any JDBC parameter exposed via the Airbyte Snowflake source that forces the driver to refresh result tokens for long‑running queries. - Any connector‑level setting in airbyte/source-snowflake 1.0.8 that changes this behavior. Because of that, I can’t point you to a specific Snowflake or JDBC setting that you can flip to “fix” the 6‑hour timeout through Airbyte configuration. Given what is documented, the practical options that align with existing guidance are: 1. Minimize single‑query runtime from Snowflake source Since the failure is happening while Airbyte is reading the staged result chunks, you want each logical read from Snowflake to complete well within 6 hours. There is no official Airbyte doc on how to do partitioned reads for the Snowflake source, but other users dealing with large tables in other connectors have worked around similar issues by: - Reducing how much data is pulled per connection (e.g., splitting by table or by time range), so each sync finishes more quickly. [[MySQL large‑table instability](https://discuss.airbyte.io/t/2991); [MySQL 1.3TB table](https://discuss.airbyte.io/t/1715)] The sources don’t show a Snowflake‑specific recipe (like “set this param to partition by date”), so any partitioning would have to be done at the Airbyte connection/catalog level (e.g., multiple connections filtered on different date ranges) or at the table design level. This is a workaround rather than a documented feature. 2. Upgrade and monitor connector versions You’re already on 1.0.8, which is the latest listed Snowflake source version and includes CDK updates and bug fixes, but none of the changelog entries mention fixes for long‑running query token expiry. [[Snowflake changelog](https://docs.airbyte.com/integrations/sources/snowflake#changelog)] So upgrading beyond 1.0.8 doesn’t seem applicable based on current docs; still, if newer versions are released after 1.0.8 in your environment, it’s worth checking their release notes for any mention of S3/token/timeout fixes. 3. Accept that failed attempts re‑read from the last stored state The incremental behavior documented for Snowflake is state‑based: the connector stores the max cursor value when a sync finishes successfully. [[Snowflake incremental](https://docs.airbyte.com/integrations/sources/snowflake#incremental-sync)] The docs do not describe periodic checkpointing mid‑sync. That aligns with what you’re observing: when an attempt fails after many hours, the next attempt restarts from the prior committed cursor (which is often much earlier than where the failed attempt “got to”). There’s no documented setting to change this behavior for the Snowflake source. 4. Open/track an issue (if you haven’t already) There is already an open GitHub issue for the 6‑hour Snowflake → S3 “Request has expired” problem; the knowledge sources do not show a fix. [[Snowflake 403 GH issue](https://discuss.airbyte.io/t/3071)] Given that your case is Snowflake → BigQuery on airbyte/source-snowflake 1.0.8 (an Airbyte‑certified connector), providing your logs and environment details on that issue or a new one would be aligned with what other users have done when hitting similar platform‑level limitations. Because the docs and forum threads you’ve provided do not include a confirmed configuration‑level solution (no Snowflake parameter, no JDBC option, no Airbyte toggle) for extending or refreshing those 6‑hour Snowflake result tokens, I can’t recommend a concrete parameter change with confidence. The only actionable, documented‑aligned path today is to restructure the sync so that each Snowflake result set can be fully consumed well inside the 6‑hour window, and to treat the missing mid‑sync checkpointing as a current limitation of the Snowflake source connector.Francis Carr
11/26/2025, 5:03 PMFrancis Carr
11/26/2025, 5:04 PMCLIENT_SESSION_KEEP_ALIVE=true to the JDBC parameters as linked to by this post and this has not fixed anything. It still times out. The PR being here; https://github.com/airbytehq/airbyte/pull/9567