Skip to content

Commit

Permalink
[Snowflake] Use Abort Detached Queries. (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 authored Apr 26, 2024
1 parent f16981d commit bd10abb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func (s *Store) reestablishConnection() error {
Warehouse: s.config.Snowflake.Warehouse,
Region: s.config.Snowflake.Region,
Application: s.config.Snowflake.Application,
Params: map[string]*string{
// https://docs.snowflake.com/en/sql-reference/parameters#abort-detached-query
"ABORT_DETACHED_QUERY": ptr.ToString("true"),
},
}

if s.config.Snowflake.Host != "" {
Expand Down

0 comments on commit bd10abb

Please sign in to comment.