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
Thanks to this default argument, not explicitly setting a port ends in a connection timeout with an https connection URI.
Given how both DEFAULT_PORT and DEFAULT_TLS_PORT constants exist, the default value of the connection port should likely be dependant on the scheme.
Actual behavior
Compare this with the behaviour of the Node trino-client implementation.
trino-client (JS)
import{BasicAuth,Trino}from"trino-client";consttrino=Trino.create({server: "https://my.endpoint.com",// No explicit portcatalog: "gp_eu",schema: "dbo",auth: newBasicAuth("user","xxxxxx"),});asyncfunctionmain(){constiter=awaittrino.query("SHOW TABLES FROM gp_eu.dbo");forawait(constqueryResultofiter){console.log(queryResult.data);console.error(queryResult.error);}}main();// Prints query results
Expected behavior
Thanks to this default argument, not explicitly setting a
port
ends in a connection timeout with anhttps
connection URI.Given how both
DEFAULT_PORT
andDEFAULT_TLS_PORT
constants exist, the default value of the connection port should likely be dependant on the scheme.Actual behavior
Compare this with the behaviour of the Node
trino-client
implementation.trino-client
(JS)trino
(Python)Steps To Reproduce
See above.
Log output
No response
Operating System
macOS 15.3.2
Trino Python client version
0.333.0
Trino Server version
470
Python version
3.12
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: