Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Mar 19, 2024
1 parent 3d8a73e commit bd2030b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
# Type stubs
- boto3-stubs
- dask
- deltalake
- deltalake>=0.16
- pandas-stubs
- pytest
- types-setuptools
Expand Down
9 changes: 5 additions & 4 deletions dask_deltatable/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

import os
from collections.abc import Sequence
from functools import partial
from typing import Any, Callable, cast

import dask
import dask.dataframe as dd
import pyarrow as pa
import pyarrow.parquet as pq
from dask.base import tokenize
from dask.dataframe.io.parquet.arrow import ArrowDatasetEngine
from dask.dataframe.utils import make_meta
from deltalake import DataCatalog, DeltaTable
Expand Down Expand Up @@ -117,11 +115,14 @@ def _read_from_filesystem(
meta = meta[columns]

return dd.from_map(
partial(_read_delta_partition, fs=fs, columns=columns, schema=schema, **kwargs),
_read_delta_partition,
pq_files,
meta=meta,
label="read-delta-table",
token=tokenize(path, fs_token, **kwargs), # type: ignore
fs=fs,
columns=columns,
schema=schema,
**kwargs,
)


Expand Down
1 change: 0 additions & 1 deletion tests/test_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def test_reader_all_primitive_types():
# is "more correct".
expected_ddf["timestamp"] = expected_ddf["timestamp"].astype("datetime64[us]")
expected_ddf["timestamp"] = expected_ddf["timestamp"].dt.tz_localize("UTC")
expected_ddf["binary"] = expected_ddf["binary"].astype("string[pyarrow]")
assert_eq(actual_ddf, expected_ddf)


Expand Down

0 comments on commit bd2030b

Please sign in to comment.