-
Notifications
You must be signed in to change notification settings - Fork 122
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
to_gbq fails to append to table because of alleged schema mismatch #13
Comments
I'm working on the pull request. |
transfered issue from pandas-dev/pandas#15387 |
Is this pull request still being worked on? I encountered the problem as @medullaskyline described on May 5, 2016. The schema generated by |
Same here. Python version 2.7 here.
I compared existing BQ table and the schema of the dataframe and it looks identical. This was working fine for several months. |
Does the |
Disregard. It looks like my new table has a few extra fields. |
I've the same problem, the first time, it creates all the schemas by itself and works fine. Second time if I try to upload identical dataframe, it doesn't work |
@avinashsp93 This issue is quite old and the library has changed a lot since then. Could you open a separate issue and include a minimal code example that reproduces the issue? |
had the same issues, i just didn't include the field "mode". haven't check whether it cares about "description".here is an example of a table schema with mode: |
|
I reproduced the same issue today (( |
did u figure out? |
DF's schema returned by pandas.io.gbq.generate_bq_schema(df):
Schema from BQ CLI:
to_gbq(df,"dataset.table","project",if_exists="append",private_key=service_key_path)
Throws:
The text was updated successfully, but these errors were encountered: