From 89e7f032f851ebe69579edef8750c83b3f7d55c3 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Wed, 26 Mar 2025 23:17:10 +0100 Subject: [PATCH] Fix naming --- pyiceberg/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiceberg/transforms.py b/pyiceberg/transforms.py index fd90859203..32a4233c67 100644 --- a/pyiceberg/transforms.py +++ b/pyiceberg/transforms.py @@ -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)