rdblue commented on code in PR #8067:
URL: https://github.com/apache/iceberg/pull/8067#discussion_r1279680214


##########
python/pyiceberg/avro/writer.py:
##########
@@ -78,22 +79,25 @@ def write(self, encoder: BinaryEncoder, val: float) -> None:
 
 class DateWriter(Writer):
     def write(self, encoder: BinaryEncoder, val: Any) -> None:
-        encoder.write_date_int(val)
+        encoder.write_int(date_to_days(val))

Review Comment:
   Here as well, the encoders and decoders should not use datetime objects.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to