Skip to content

Commit f09cfd6

Browse files
author
Jan Škoda
committed
fix KeyError 'dt' with s3 method
1 parent 5030bfb commit f09cfd6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
History
33
=======
44

5+
0.18.0 (2024-08-21)
6+
-------------------
7+
8+
* fix KeyError: 'dt' with s3 method
9+
510
0.17.0 (2024-08-09)
11+
-------------------
612

713
* orderbook class performance improvements
814

lakeapi/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def load_data(
126126

127127
def partition_filter(partition: Dict[str, str]) -> bool:
128128
return (
129-
(
129+
"dt" in partition
130+
and (
130131
start is None
131132
or start.date() <= datetime.date.fromisoformat(partition["dt"])
132133
)
@@ -159,7 +160,6 @@ def partition_filter(partition: Dict[str, str]) -> bool:
159160
last_ex = None
160161
for _ in range(2):
161162
try:
162-
# TODO: log & skip corrupted files
163163
df = lakeapi._read_parquet.read_parquet(
164164
path=f"s3://{bucket}/{table}/",
165165
partition_filter=partition_filter,

0 commit comments

Comments
 (0)