Skip to content

Commit

Permalink
fix: import path
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Aug 13, 2024
1 parent 116fcb6 commit 4856da9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ else
endif

.venv: ## Set up virtual environment and install requirements
pip install --upgrade pip
pip install uv==0.2.35
pip3 install uv==0.2.35
uv venv
$(MAKE) requirements

Expand Down
8 changes: 7 additions & 1 deletion libraries/dagster-delta/dagster_delta/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
from deltalake.exceptions import TableNotFoundError
from deltalake.schema import Field as DeltaField
from deltalake.schema import PrimitiveType, Schema, _convert_pa_schema_to_delta
from deltalake.table import FilterLiteralType, filters_to_expression # type: ignore
from deltalake.table import FilterLiteralType

try:
from pyarrow.parquet import filters_to_expression # pyarrow >= 10.0.0
except ImportError:
from pyarrow.parquet import _filters_to_expression as filters_to_expression


from .config import MergeType
from .io_manager import (
Expand Down

0 comments on commit 4856da9

Please sign in to comment.