-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datetime and decimal should be logical types #19817
Comments
.take-issue |
This issue was raised again in May 22, per this comment in Jira ilango-mediaagility: This is blocked by #21433 |
There is a problem of replace all DATETIME fieldtype to logical type, per @TheNeuralBit:
Thus I decided not to change InstantCoder at this moment, instead extend the support MicrosInstant logical type in Java sdk and DateTime logical type in python sdk, seems to be the simplest way to make xlang read/write records containing timestamp type work. |
Yeah I agree that it's better to just prefer logical types for multi-language transforms, rather than trying to shunt the DATETIME primitive type this way. We may want to add types for additional precisions as needed (MillInstant, NanosInstant, etc) |
update: Python support is complete. Leave this open for Go support |
Currently datetime and decimal are implemented as primitive types in the Java SDK. They should be logical types as documented in https://s.apache.org/beam-schemas
Imported from Jira BEAM-7554. Original Jira may contain additional context.
Reported by: bhulette.
The text was updated successfully, but these errors were encountered: