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

Pass runtime configs & variables to BeamSqlSeekableTable #28253

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

gabrywu
Copy link
Member

@gabrywu gabrywu commented Aug 31, 2023

fixes #28145

@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@liferoad
Copy link
Collaborator

R: @Abacn

@liferoad
Copy link
Collaborator

R: @bvolpato

@liferoad
Copy link
Collaborator

R: @kennknowles

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@gabrywu gabrywu changed the title pass runtime configs & variables to BeamSqlSeekableTable Pass runtime configs & variables to BeamSqlSeekableTable Sep 1, 2023
@bvolpato
Copy link
Contributor

bvolpato commented Sep 2, 2023

Thanks! No major concerns from me -- just one note is that relying on PipelineOptions will allow configuring behavior for the entire job.

Sometimes it's better to use a specific configuration class / instance, so you could likely have multiple JOINs in the same job and each handle different things.

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

LGTM. It's totally reasonable to add the method as they corresponding the dofn lifecycle methods. Probably we should add them at the beginning.

  • One thing to note when implementing youe own BeamSqlSeekableTable. startBundle can be called many times, so if initializing a connection in it, it's good to use a connection pool otherwise there could be too much connection - a common issue seen in Beam IO implementation

also, its nice to have a test checking dofn lifecycle is effective with BeamSqlSeekableTable methods.

@gabrywu
Copy link
Member Author

gabrywu commented Sep 3, 2023

LGTM. It's totally reasonable to add the method as they corresponding the dofn lifecycle methods. Probably we should add them at the beginning.

  • One thing to note when implementing youe own BeamSqlSeekableTable. startBundle can be called many times, so if initializing a connection in it, it's good to use a connection pool otherwise there could be too much connection - a common issue seen in Beam IO implementation

also, its nice to have a test checking dofn lifecycle is effective with BeamSqlSeekableTable methods.

thanks very much. I will add an initialized flag to startBundle in our own BeamSqlSeekableTable to avoid too much connection.

@Abacn Abacn merged commit 3364271 into apache:master Sep 5, 2023
26 of 27 checks passed
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.

[Feature Request]: Access PipelineOptions in BeamSqlSeekableTable
4 participants