-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Marshal row data correctly in 'Table.insert_data()' #3426
Marshal row data correctly in 'Table.insert_data()' #3426
Conversation
:returns: A tuple of data converted to native types. | ||
""" | ||
row_data = [] | ||
for field, cell in zip(schema, row['f']): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
"""Convert JSON row data to rows with appropriate types.""" | ||
return [_row_from_json(row, schema) for row in rows] | ||
# Converters used for scalar values marshalled as query parameters. | ||
_SCALAR_VALUE_TO_JSON_PARM = _SCALAR_VALUE_TO_JSON_ROW.copy() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
# Specifies the number of seconds since the epoch. | ||
value = _convert_timestamp(value) | ||
converter = _SCALAR_VALUE_TO_JSON_ROW.get(field.field_type) | ||
if converter is not None: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Closes #2957.