Skip to content

Commit dba6ec8

Browse files
committed
Add support for sqlite
1 parent 66470fd commit dba6ec8

File tree

4 files changed

+372
-143
lines changed

4 files changed

+372
-143
lines changed

poetry.lock

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyiceberg/catalog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def infer_catalog_type(name: str, catalog_properties: RecursiveDict) -> Optional
153153
return CatalogType.REST
154154
elif uri.startswith("thrift"):
155155
return CatalogType.HIVE
156-
elif uri.startswith("postgresql"):
156+
elif uri.startswith("postgresql") or uri.startswith("sqlite"):
157157
return CatalogType.SQL
158158
else:
159159
raise ValueError(f"Could not infer the catalog type from the uri: {uri}")

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ sqlalchemy = { version = "^2.0.18", optional = true }
7474
[tool.poetry.dev-dependencies]
7575
pytest = "7.4.3"
7676
pytest-checkdocs = "2.10.1"
77+
pytest-lazy-fixture = "0.6.3"
7778
pre-commit = "3.5.0"
7879
fastavro = "1.9.0"
7980
coverage = { version = "^7.3.2", extras = ["toml"] }

0 commit comments

Comments
 (0)