Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BigQuery: Set BQ storage client user-agent when in Jupyter cell#8734

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tswast merged 5 commits intogoogleapis:masterfromplamut:iss-8696-b
Jul 30, 2019

Conversation

@plamut
Copy link
Contributor

Closes#8696

This is a follow-up to#8713, it adds the same user-agent string to the optional BQ storage client, if the latter is used.

How to test

See issue description and the subsequentcomment about adding the user-agent info to the other client, too.

@plamutplamut added the api: bigqueryIssues related to the BigQuery API. labelJul 23, 2019
@plamutplamut requested review froma team andtswastJuly 23, 2019 13:11
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelJul 23, 2019
@plamut
Copy link
ContributorAuthor

plamut commentedJul 23, 2019
edited
Loading

When running unit tests locally, I noticed that one of them failshere. The reason seems to be thatfloat("nan") is converted toNone bypyarrow, instead of the expectedfloat("nan"). It also happens on the latestmaster, thus the failure seems unrelated to this PR.

MyPandas andpyarrow versions:

pandas==0.24.2pyarrow==0.13.0

Update: The same happened in Kokoro checks, did not observe this yesterday...

"""Provide a patcher that can make the bigquery storage import to fail."""
orig_import=six.moves.builtins.__import__

defcustom_import(name,globals=None,locals=None,fromlist=(),level=0):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make this__import__ mock into a test utility (athttps://github.com/googleapis/google-cloud-python/tree/master/test_utils/test_utils or maybehttps://github.com/googleapis/google-cloud-python/blob/master/bigquery/tests/unit/helpers.py)?

Seems generally useful, and also something I'd like to see tests for.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'd say we put it in bigquery test utils for now, and ask other stakeholders if they are fine with promoting it to core test utils.
(there might be additional features/generalizations requested, but that would not block this particular PR)

Copy link
ContributorAuthor

@plamutplamutJul 26, 2019
edited
Loading

Choose a reason for hiding this comment

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

BTW, whom can I ask if the new helper is fit for promotion, who owns the core?

(if there isn't one and we can do it at our own discretion, please let me know)

Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, whom can I ask if the new helper is fit for promotion, who owns the core?

(if there isn't one and we can do it at our own discretion, please let me know)

I would say add a separate PR promoting it, and tag@busunkim96 for review.

plamut reacted with thumbs up emoji
@plamutplamutforce-pushed theiss-8696-b branch 3 times, most recently fromc1b1afc tob694a91CompareJuly 26, 2019 13:01
The client is a grpc client, thus the grpc ClientInfo class should beused to configure it.
@plamutplamut requested a review fromtswastJuly 29, 2019 10:44
@plamutplamut added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelJul 29, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelJul 29, 2019
@plamutplamut requested a review fromtswastJuly 30, 2019 06:23
@tswasttswast merged commitbb353b9 intogoogleapis:masterJul 30, 2019
@plamutplamut deleted the iss-8696-b branchJuly 31, 2019 09:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

+1 more reviewer

@tseavertseavertseaver left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery: Add user-agent info to Jupyter magics Client constructor(s).

5 participants

@plamut@tseaver@tswast@googlebot@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp