Uh oh!
There was an error while loading. Please reload this page.
BigQuery: Allow specifying index data type in partial schema to load_table_from_dataframe. - #9084
Conversation
tswast
commented
Aug 23, 2019
Thought: if an index column is requested, but we end up wanting to return a schema of |
…m_dataframe`. If an index (or level of a multi-index) has a name and is present in the schema passed to `load_table_from_dataframe`, then that index will be serialized and written to the table. Otherwise, the index is omitted from the serialized table.
b04a3c6 to
14e6baaCompare…to issue5572-load-dataframe-indexes
tswast
commented
Aug 27, 2019
Counter-thought: We'll already display a deprecation warning when we have to fallback to automatic schema detection via |
plamut
left a comment
There was a problem hiding this comment.
Looks good in general, but spotted a few things that are worth checking again IMO.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
plamut
commented
Aug 28, 2019
@tswast Please just blacken |
plamut
left a comment
There was a problem hiding this comment.
LGTM now, thanks for the quick updates!
…rame`. (googleapis#9084) * Specify the index data type in partial schema to `load_table_from_dataframe` to include it. If an index (or level of a multi-index) has a name and is present in the schema passed to `load_table_from_dataframe`, then that index will be serialized and written to the table. Otherwise, the index is omitted from the serialized table. * Don't include index if has same name as column name. * Move `load_table_dataframe` sample from `snippets.py` to `samples/`. Sample now demonstrates how to manually include the index with a partial schema definition. Update docs reference to new `load_table_dataframe` sample location.
…rame`. (googleapis#9084) * Specify the index data type in partial schema to `load_table_from_dataframe` to include it. If an index (or level of a multi-index) has a name and is present in the schema passed to `load_table_from_dataframe`, then that index will be serialized and written to the table. Otherwise, the index is omitted from the serialized table. * Don't include index if has same name as column name. * Move `load_table_dataframe` sample from `snippets.py` to `samples/`. Sample now demonstrates how to manually include the index with a partial schema definition. Update docs reference to new `load_table_dataframe` sample location.
Closes#5572.
If an index (or level of a multi-index) has a name and is present in the
schema passed to
load_table_from_dataframe, then that index will beserialized and written to the table. Otherwise, the index is omitted
from the serialized table.
Remaining items:
ValueErrors for missing / extra columns.samples/load_table_dataframe.py.