Skip to content

Commit b68e1a8

Browse files
DineshkarthikKevinFarrell
authored andcommitted
Update docs: SQLAlchemy Passing session configuration - Presto (#176)
1 parent cc0c6f8 commit b68e1a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ Passing session configuration
6969
hive.connect('localhost', configuration={'hive.exec.reducers.max': '123'})
7070
presto.connect('localhost', session_props={'query_max_run_time': '1234m'})
7171
# SQLAlchemy
72-
create_engine('presto://user@host:443/hive', connect_args={'protocol': 'https'})
72+
create_engine(
73+
'presto://user@host:443/hive',
74+
connect_args={'protocol': 'https',
75+
'session_props': {'query_max_run_time': '1234m'}}
76+
)
7377
create_engine(
7478
'hive://user@host:10000/database',
7579
connect_args={'configuration': {'hive.exec.reducers.max': '123'}},

0 commit comments

Comments
 (0)