ahmedabu98 opened a new pull request, #41550: URL: https://github.com/apache/beam/pull/41550
Makes `beam:logical_type:datetime:v1` a standard portable logical type with a precision (0 to 9, default 6). In Java, `SqlTypes.DATETIME` becomes `DateTime(6)`, so a `LocalDateTime` with sub-microsecond digits now throws (`DateTime.NANOS` keeps them). Python gets a matching `apache_beam.utils.timestamp.DateTime`. The Python `DateTime` has no arithmetic for now. To compute with it, convert it to `datetime.datetime` with `to_datetime()` or to Arrow with `to_arrow()`. -- 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]
