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

Add default LoadJobConfig to Client #1519

Closed
chelsea-lin opened this issue Mar 6, 2023 · 0 comments · Fixed by #1526
Closed

Add default LoadJobConfig to Client #1519

chelsea-lin opened this issue Mar 6, 2023 · 0 comments · Fixed by #1526
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@chelsea-lin
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Client can supports the default QueryJobConfig (commit d7a9a80) a while ago. This is helpful to bind a session_id for the query jobs (related #1512).

bqclient.default_query_job_config = bigquery.QueryJobConfig(
      connection_properties=[
          bigquery.ConnectionProperty("session_id", session_id)
      ]
)

After BQ load jobs support connection_properties with session_id (commit cd0aaa1), we would like to introduce default_load_job_config to Client so that the similar connection properties can be passed.

Describe the solution you'd like

Can we introduce default_load_job_config to Client (similar to commit cd0aaa1)

Describe alternatives you've considered
The alternatives solution would patching the connection_properties to all load_* APIs, which is not workable if we need to call an external libraries (e.g. ibis), where we can only config the client settings but its load APIs are hidden within the external libraries.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Mar 6, 2023
@tswast tswast added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Mar 6, 2023
@chelsea-lin chelsea-lin self-assigned this Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants