perf: add size parameter for load table from dataframe and json methods#280
Merged
HemangChothani merged 8 commits intogoogleapis:masterfrom Oct 14, 2020
Merged
Conversation
tswast
requested changes
Sep 29, 2020
Contributor
tswast
left a comment
There was a problem hiding this comment.
Nit: of the valid conventional commits at https://github.com/googleapis/release-please/blob/master/src/releasers/python.ts, perf: is more appropriate in this case, as we aren't adding any new features.
google/cloud/bigquery/client.py
Outdated
| return self.load_table_from_file( | ||
| data_file, | ||
| destination, | ||
| size=len(data_str), |
Contributor
There was a problem hiding this comment.
This length needs to be on the encoded string, not the unicode string, otherwise the size will be wrong when non-ASCII characters are included.
…into bigquery_issue_277
Contributor
Author
|
Unit test failed is not related to the changes, issue will be resolved by PR #295 |
…into bigquery_issue_277
…into bigquery_issue_277
Contributor
|
@tswast Any reason not to merge this now? |
Contributor
…into bigquery_issue_277
gcf-merge-on-green bot
pushed a commit
that referenced
this pull request
Oct 19, 2020
🤖 I have created a release \*beep\* \*boop\* --- ## [2.2.0](https://github.com/googleapis/python-bigquery/compare/v2.1.0...v2.2.0) (2020-10-19) ### Features * add method api_repr for table list item ([#299](https://github.com/googleapis/python-bigquery/issues/299)) ([07c70f0](https://github.com/googleapis/python-bigquery/commit/07c70f0292f9212f0c968cd5c9206e8b0409c0da)) * add support for listing arima, automl, boosted tree, DNN, and matrix factorization models ([#328](https://github.com/googleapis/python-bigquery/issues/328)) ([502a092](https://github.com/googleapis/python-bigquery/commit/502a0926018abf058cb84bd18043c25eba15a2cc)) * add timeout paramter to load_table_from_file and it dependent methods ([#327](https://github.com/googleapis/python-bigquery/issues/327)) ([b0dd892](https://github.com/googleapis/python-bigquery/commit/b0dd892176e31ac25fddd15554b5bfa054299d4d)) * add to_api_repr method to Model ([#326](https://github.com/googleapis/python-bigquery/issues/326)) ([fb401bd](https://github.com/googleapis/python-bigquery/commit/fb401bd94477323bba68cf252dd88166495daf54)) * allow client options to be set in magics context ([#322](https://github.com/googleapis/python-bigquery/issues/322)) ([5178b55](https://github.com/googleapis/python-bigquery/commit/5178b55682f5e264bfc082cde26acb1fdc953a18)) ### Bug Fixes * make TimePartitioning repr evaluable ([#110](https://github.com/googleapis/python-bigquery/issues/110)) ([20f473b](https://github.com/googleapis/python-bigquery/commit/20f473bfff5ae98377f5d9cdf18bfe5554d86ff4)), closes [#109](https://github.com/googleapis/python-bigquery/issues/109) * use version.py instead of pkg_resources.get_distribution ([#307](https://github.com/googleapis/python-bigquery/issues/307)) ([b8f502b](https://github.com/googleapis/python-bigquery/commit/b8f502b14f21d1815697e4d57cf1225dfb4a7c5e)) ### Performance Improvements * add size parameter for load table from dataframe and json methods ([#280](https://github.com/googleapis/python-bigquery/issues/280)) ([3be78b7](https://github.com/googleapis/python-bigquery/commit/3be78b737add7111e24e912cd02fc6df75a07de6)) ### Documentation * update clustering field docstrings ([#286](https://github.com/googleapis/python-bigquery/issues/286)) ([5ea1ece](https://github.com/googleapis/python-bigquery/commit/5ea1ece2d911cdd1f3d9549ee01559ce8ed8269a)), closes [#285](https://github.com/googleapis/python-bigquery/issues/285) * update snippets samples to support version 2.0 ([#309](https://github.com/googleapis/python-bigquery/issues/309)) ([61634be](https://github.com/googleapis/python-bigquery/commit/61634be9bf9e3df7589fc1bfdbda87288859bb13)) ### Dependencies * add protobuf dependency ([#306](https://github.com/googleapis/python-bigquery/issues/306)) ([cebb5e0](https://github.com/googleapis/python-bigquery/commit/cebb5e0e911e8c9059bc8c9e7fce4440e518bff3)), closes [#305](https://github.com/googleapis/python-bigquery/issues/305) * require pyarrow for pandas support ([#314](https://github.com/googleapis/python-bigquery/issues/314)) ([801e4c0](https://github.com/googleapis/python-bigquery/commit/801e4c0574b7e421aa3a28cafec6fd6bcce940dd)), closes [#265](https://github.com/googleapis/python-bigquery/issues/265) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #277
Also applied on
load_table_from_jsonmethod.