Skip to content
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

[BEAM-5504] Add Avro support to Pubsub table provider #12780

Merged
merged 13 commits into from
Oct 29, 2020

Conversation

pjotrekk
Copy link

@pjotrekk pjotrekk commented Sep 7, 2020

Add pubsub avro table provider.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Dataflow Flink Samza Spark Twister2
Go Build Status --- Build Status --- Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status
Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang Build Status --- Build Status --- Build Status ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status --- --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@pjotrekk
Copy link
Author

pjotrekk commented Sep 10, 2020

@TheNeuralBit Could I ask you for review? I wonder whether payloadFormat shouldn't be specified in TBLPROPERTIES instead of creating a separate class for every payload format? I'm planning to write PubsubProtoTableProvider next so there will be another and then probably yet another class.

@pjotrekk pjotrekk force-pushed the table-provider branch 2 times, most recently from 7c0fe8d to 7b14d30 Compare September 10, 2020 11:06
@pjotrekk pjotrekk changed the title [WIP] [BEAM-10857] Add Pubsub Avro table provider [BEAM-10857] Add Pubsub Avro table provider Sep 10, 2020
@pjotrekk pjotrekk force-pushed the table-provider branch 4 times, most recently from fa617a4 to c40eeb2 Compare September 10, 2020 14:10
@TheNeuralBit
Copy link
Member

Yep I can review this!

I wonder whether payloadFormat shouldn't be specified in TBLPROPERTIES instead of creating a separate class for every payload format?

Yeah I think that's the way to go. Let's add a payloadFormat option in TBLPROPERTIES that defaults to JSON if not specified.

@pjotrekk
Copy link
Author

Yeah I think that's the way to go. Let's add a payloadFormat option in TBLPROPERTIES that defaults to JSON if not specified.

It's already in TBLPROPERTIES

@pjotrekk pjotrekk force-pushed the table-provider branch 2 times, most recently from 4283eca to b3a71ef Compare October 19, 2020 15:25
@pjotrekk
Copy link
Author

Run SQL PostCommit

@pjotrekk
Copy link
Author

@piotr-szuberski could you rebase this to get the changes from #12827?

Done.

@pjotrekk
Copy link
Author

@TheNeuralBit

@pjotrekk
Copy link
Author

Run SQL PostCommit

@pjotrekk
Copy link
Author

Run Java PreCommit

Copy link
Member

@TheNeuralBit TheNeuralBit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @piotr-szuberski! I have a few suggestions

@pjotrekk
Copy link
Author

Run SQL PostCommit

Copy link
Member

@TheNeuralBit TheNeuralBit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a closer look at the implementation this time and I have a few more suggestions there. This looks good otherwise.

@pjotrekk
Copy link
Author

Run SQL PostCommit

@TheNeuralBit
Copy link
Member

Run Java PreCommit

Copy link
Member

@TheNeuralBit TheNeuralBit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@TheNeuralBit TheNeuralBit merged commit b26b499 into apache:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants