Skip to content

Commit

Permalink
utils bugfix: partition check
Browse files Browse the repository at this point in the history
Very minor fix to make the partition checking logic reachable.
  • Loading branch information
Robin Nabel committed Jan 13, 2025
1 parent 03d2f62 commit 419864b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dagster_pyiceberg/_db_io_manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def generate_multi_partitions_dimension(
partitions.append(partition_key)

partition_expr_str = partition_expr.get(part.name)
if partition_expr is None:
if partition_expr_str is None:
raise ValueError(
f"Asset '{asset_key}' has partition {part.name}, but the"
f" 'partition_expr' metadata does not contain a {part.name} entry,"
Expand Down

0 comments on commit 419864b

Please sign in to comment.