Skip to content

Commit

Permalink
Merge pull request #9 from hoaihuongbk/allow_http_protocol
Browse files Browse the repository at this point in the history
Allow to use HTTP protocol from Trino connection
  • Loading branch information
hoaihuongbk authored Feb 9, 2025
2 parents a6ce209 + 8079756 commit 6d6707e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lakeops"
version = "0.1.5"
version = "0.1.6"
description = "Data lake operations toolkit"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
3 changes: 2 additions & 1 deletion src/lakeops/core/engines/trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TrinoEngineConfig:
catalog: str
schema: str
password: Optional[str] = None
protocol: str = "https"

@property
def connection(self):
Expand All @@ -30,7 +31,7 @@ def connection(self):
f"trino://{self.user}@{self.host}:{self.port}/{self.catalog}/{self.schema}",
connect_args={
"auth": auth,
"http_scheme": "https",
"http_scheme": self.protocol,
},
)

Expand Down

0 comments on commit 6d6707e

Please sign in to comment.