Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyiceberg/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def hour_func(v: Any) -> int:

elif isinstance(source, (TimestampNanoType, TimestamptzNanoType)):

def day_func(v: Any) -> int:
def hour_func(v: Any) -> int:
# python datetime has no nanoseconds support.
# nanosecond datetimes will be expressed as int as a workaround
return datetime.nanos_to_hours(v)
Expand Down