Skip to content

Commit 96e6d54

Browse files
authored
Fix naming (#1857)
# Rationale for this change Small copy-paste :) # Are these changes tested? # Are there any user-facing changes? <!-- In the case of user-facing changes, please add the changelog label. -->
1 parent ff76144 commit 96e6d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)