Skip to content
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

"No schema specified on job or table." Error when writing an empty table using .saveAsTypedBigQuery #884

Closed
Tomczik76 opened this issue Oct 16, 2017 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Tomczik76
Copy link

Tomczik76 commented Oct 16, 2017

I repeatedly had a failed job with:
"errors" : [ { "message" : "No schema specified on job or table.", "reason" : "invalid" } ]

When writing using .saveAsTypedBigQuery on a @BigQueryType.toTable case class when writing an empty table.

@BigQueryType.toTable case class Usage(an: String)

Also, I didn't encounter a failure when using .saveAsBigQuery and giving a TableSchema

@nevillelyh nevillelyh added the bug Something isn't working label Oct 16, 2017
@nevillelyh
Copy link
Contributor

@fallonchen IIRC you looked at a similar one?

@Tomczik76
Copy link
Author

I think I might have made a mistake. I just ran into the same issue with saveAsBigQuery.

@Tomczik76
Copy link
Author

I'm closing this issue because it seems to be a regression with Apache Beam.

@nevillelyh
Copy link
Contributor

@Tomczik76 did you find a BEAM Jira ticket?

@Tomczik76
Copy link
Author

@nevillelyh nevillelyh reopened this Oct 17, 2017
@nevillelyh
Copy link
Contributor

Let's keep this open until it's resolved upstream and in Scio :)

@nevillelyh
Copy link
Contributor

@Tomczik76
Copy link
Author

Just to be clear BEAM-3067 states this happens with DirectRunner. I encountered this bug using the DataFlowRunner.

@andrewsmartin
Copy link
Contributor

Verified that this has been resolved in Scio 0.4.6 / Beam 2.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants