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

The java bigquery library expects more values to be returned from an update table call than currently returned #363

Open
KasperJanssens opened this issue Oct 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KasperJanssens
Copy link

What happened?

When performing an update call, e.g. adding a column,for instance with this payload to an existing table called campaigns here
{ "schema" : { "fields" : [ { "name" : "bleuh", "type" : "STRING" } ] }, "tableReference" : { "datasetId" : "service", "projectId" : "test-project", "tableId" : "campaigns" } }
The json being returned is exactly the json that has been sent. The java library expects at least the table type to be present as well (will throw an exception)

What did you expect to happen?

I expect the table update call to function when adding a column, likely by returning an instance of 'table'. At the least the table type ("TABLE, VIEW, EXTERNAL, SNAPSHOT, ...) seems to be expected and needed by the library.

How can we reproduce it (as minimally and precisely as possible)?

any java update table call will have this issue. When performing an update through curl, you can also see that the table key is not returned, it reflects the input json it seems

Anything else we need to know?

No response

@KasperJanssens KasperJanssens added the bug Something isn't working label Oct 23, 2024
@KasperJanssens
Copy link
Author

When looking through the documentation of the rest server it seems to say this on the update call

Response body
If successful, the response body contains an instance of Table.

docs

so I guess what's expected is the same content as what's being returned from a GET call

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

1 participant