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

feat(bigquery): check rows arg type in insert_rows()#10174

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:masterfromMaxxleLLC:type_check_insert_rows
Jan 23, 2020

Conversation

@IlyaFaer
Copy link

@IlyaFaerIlyaFaer commentedJan 20, 2020
edited
Loading

Continuation of#10162
Adding arg type check intoinsert_rows() method

@IlyaFaerIlyaFaer added type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. api: bigqueryIssues related to the BigQuery API. labelsJan 20, 2020
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelJan 20, 2020
ValueError: if table's schema is not set or `rows` is not a `Sequence`.
"""
ifnotisinstance(rows, (collections_abc.Sequence,collections_abc.Iterator)):
raiseTypeError("rows argument should be a sequence of dicts or tuples")
Copy link
Author

Choose a reason for hiding this comment

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

AddingIterator too asinsert_rows_from_dataframe() callsinsert_rows() with iterator returned byitertools.islice.dict still will give aFalse at this statement

tswast reacted with thumbs up emoji
@IlyaFaerIlyaFaer requested a review fromtswastJanuary 20, 2020 13:00
@IlyaFaerIlyaFaer marked this pull request as ready for reviewJanuary 20, 2020 13:00
@IlyaFaerIlyaFaer requested a review froma teamJanuary 20, 2020 13:00
@tswasttswast merged commit0280a94 intogoogleapis:masterJan 23, 2020
This was referencedJan 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@IlyaFaer@tswast@googlebot

[8]ページ先頭

©2009-2025 Movatter.jp