fix: omit NaN values when uploading from insert_rows_from_dataframe#170
Merged
plamut merged 2 commits intogoogleapis:masterfrom Jul 17, 2020
Merged
Conversation
NaN values are most often used to indicate a NULL value in pandas. Also, even when a column is a floating point column, the BigQuery streaming API JSON parser doesn't seem to be able to handle NaN literals.
2 tasks
Contributor
Author
|
Tests pass locally except for two failures The two test failures seem to be for permissions issues (which is strange because I think my service account is EDITOR on the project) Python 2.7: |
plamut
approved these changes
Jul 17, 2020
Comment on lines
+5645
to
+5647
| for call, expected_data in six.moves.zip_longest( | ||
| actual_calls, EXPECTED_SENT_DATA | ||
| ): |
Closed
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.
NaN values are most often used to indicate a NULL value in pandas. Also,
even when a column is a floating point column, the BigQuery streaming
API JSON parser doesn't seem to be able to handle NaN literals.
Fixes #169 🦕