Skip to content

Commit 89e7f03

Browse files
authored
Fix naming
1 parent 62191ee commit 89e7f03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyiceberg/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def hour_func(v: Any) -> int:
703703

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

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

0 commit comments

Comments
 (0)