-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
add java8 date and time type to pulsar's primitive schemas #7874
add java8 date and time type to pulsar's primitive schemas #7874
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jianyun8023 When you update the PulsarApi.proto, you need also to push the generated java file. To generate the new java file, you can run ./pulsar-common/generate_protobuf_docker.sh
.
And please add unit test for the new schema type to ensure encoding and decoding are works well.
Ok thank you. |
/pulsarbot run-failure-checks |
@gaoran10 would you please also review this ? |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
4d68923
to
237b1d1
Compare
/pulsarbot run-failure-checks |
237b1d1
to
ececfae
Compare
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
@codelipenghui Would you please help review this again? |
@codelipenghui can you review this again? |
### Motivation *Compatible with flink 1.11 need to use java8 date api in pulsar's primitive schemas.* ### Modifications *Add Instant, LocalDate, LocalTime, LocalDateTime to pulsar's primitive schemas* ### Verifying this change Add Instant, LocalDate, LocalTime, LocalDateTime types to the Schema type test
### Motivation *Compatible with flink 1.11 need to use java8 date api in pulsar's primitive schemas.* ### Modifications *Add Instant, LocalDate, LocalTime, LocalDateTime to pulsar's primitive schemas* ### Verifying this change Add Instant, LocalDate, LocalTime, LocalDateTime types to the Schema type test
### Motivation *Compatible with flink 1.11 need to use java8 date api in pulsar's primitive schemas.* ### Modifications *Add Instant, LocalDate, LocalTime, LocalDateTime to pulsar's primitive schemas* ### Verifying this change Add Instant, LocalDate, LocalTime, LocalDateTime types to the Schema type test
@Huanli-Meng Some Date types have been added here, which needs to be added at https://pulsar.apache.org/docs/en/schema-understand/. |
@jianyun8023 , Got it. Will update the doc accordingly. BTW, it is for releases 2.7.0 and master, right? |
Yes. |
OK. Thanks |
### Motivation In PR #7874, Instant, LocalDate, LocalTime, LocalDateTime are added to Pulsar's primitive schemas codes. But doc is not updated accordingly. ### Modifications Update the Pulsar docs to support Instant, LocalDate, LocalTime, LocalDateTime for Pulsar's primitive schemas. - Affected docs: Understand schema - sections: primitive type. Affected releases: master and 2.7.0
Motivation
Compatible with flink 1.11 need to use java8 date api in pulsar's primitive schemas.
Modifications
Add Instant, LocalDate, LocalTime, LocalDateTime to pulsar's primitive schemas
Verifying this change
Add Instant, LocalDate, LocalTime, LocalDateTime types to the Schema type test
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation