You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `queryTimeout` parameter sets a timeout for the query. If the query takes longer than the timeout, it will be cancelled. If it is not set the default context timeout will be used.
Copy file name to clipboardExpand all lines: trino/trino.go
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ func init() {
85
85
86
86
var (
87
87
// DefaultQueryTimeout is the default timeout for queries executed without a context.
88
-
DefaultQueryTimeout=60*time.Second
88
+
DefaultQueryTimeout=10*time.Hour
89
89
90
90
// DefaultCancelQueryTimeout is the timeout for the request to cancel queries in Trino.
91
91
DefaultCancelQueryTimeout=30*time.Second
@@ -187,6 +187,7 @@ type Config struct {
187
187
SSLCertstring// The SSL cert for TLS verification (optional)
188
188
AccessTokenstring// An access token (JWT) for authentication (optional)
189
189
ForwardAuthorizationHeaderbool// Allow forwarding the `accessToken` named query parameter in the authorization header, overwriting the `AccessToken` option, if set (optional)
190
+
QueryTimeout*time.Duration// Configurable timeout for query (optional)
190
191
}
191
192
192
193
// FormatDSN returns a DSN string from the configuration.
0 commit comments