Skip to content

Commit 8b74de7

Browse files
authored
Merge pull request #1528 from lab79/patch-1
[Vertica] Change: set longer read_timeout
2 parents bca7d08 + 509c176 commit 8b74de7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

redash/query_runner/vertica.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def configuration_schema(cls):
5353
"port": {
5454
"type": "number"
5555
},
56+
"read_timeout": {
57+
"type": "number",
58+
"title": "Read Timeout"
59+
},
5660
},
5761
'required': ['database'],
5862
'secret': ['password']
@@ -109,7 +113,8 @@ def run_query(self, query, user):
109113
'port': self.configuration.get('port', 5433),
110114
'user': self.configuration.get('user', ''),
111115
'password': self.configuration.get('password', ''),
112-
'database': self.configuration.get('database', '')
116+
'database': self.configuration.get('database', ''),
117+
'read_timeout': self.configuration.get('read_timeout', 600)
113118
}
114119
connection = vertica_python.connect(**conn_info)
115120
cursor = connection.cursor()

0 commit comments

Comments
 (0)