Skip to content

Commit 7dea999

Browse files
authored
Merge pull request #222 from bmsuisse/updates
fixes byte and short
2 parents aa2588c + 0868928 commit 7dea999

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

bmsdna/lakeapi/context/df_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ def get_pyarrow_dataset(
255255
import pyarrow.dataset as ds
256256

257257
return ds.dataset(files, filesystem=spec_fs, format="parquet") # type: ignore
258-
259258
case _:
260259
raise FileTypeNotSupportedError(
261260
f"Not supported file type {file_type}",

bmsdna/lakeapi/core/datasource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def to_pyarrow_schema(schema: DataType) -> pa.DataType:
6464
type_map: dict[PrimitiveType, pa.DataType] = {
6565
"integer": pa.int64(),
6666
"long": pa.int64(),
67+
"short": pa.int16(),
68+
"byte": pa.int8(),
6769
"string": pa.string(),
6870
"float": pa.float32(),
6971
"double": pa.float64(),

bmsdna/lakeapi/core/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@
7474
"struct": dict,
7575
"string": str,
7676
"integer": int,
77+
"short": int,
78+
"byte": int,
7779
"float": float,
7880
"array": list,
7981
"double": Decimal,
80-
"timesamp": datetime,
82+
"timestamp": datetime,
8183
"date": date,
8284
"time": time,
8385
"duration": timedelta,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bmsdna-lakeapi"
3-
version = "0.24.2"
3+
version = "0.24.3"
44
description = ""
55
authors = [{ name = "DWH Team", email = "you@example.com" }]
66
dependencies = [
@@ -19,7 +19,7 @@ dependencies = [
1919
"pandas >=2.1.0,<3",
2020
"fsspec >=2024.2.0,<2025",
2121
"adlfs >=2024.2.0,<2025",
22-
"deltalake2db >=1.0.5",
22+
"deltalake2db >=1.0.7",
2323
]
2424
requires-python = "~=3.10"
2525

uv.lock

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

0 commit comments

Comments
 (0)