We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62191ee commit 89e7f03Copy full SHA for 89e7f03
1 file changed
pyiceberg/transforms.py
@@ -703,7 +703,7 @@ def hour_func(v: Any) -> int:
703
704
elif isinstance(source, (TimestampNanoType, TimestamptzNanoType)):
705
706
- def day_func(v: Any) -> int:
+ def hour_func(v: Any) -> int:
707
# python datetime has no nanoseconds support.
708
# nanosecond datetimes will be expressed as int as a workaround
709
return datetime.nanos_to_hours(v)
0 commit comments