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

Truncate table not working #378

Open
Ojasv-Singh-Zeotap opened this issue Dec 17, 2024 · 1 comment
Open

Truncate table not working #378

Ojasv-Singh-Zeotap opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Ojasv-Singh-Zeotap
Copy link

What happened?

String q = String.format("truncate table %s.%s", getDatasetId(), getTableId());
runQuery(bigQuery, q)

Error

failed to truncate DELETE FROM `test-dataset.records`: no such table: test-dataset.records

What did you expect to happen?

table should be truncated

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

create a table and try to truncate it

Anything else we need to know?

No response

@Ojasv-Singh-Zeotap Ojasv-Singh-Zeotap added the bug Something isn't working label Dec 17, 2024
@Ojasv-Singh-Zeotap
Copy link
Author

String q = String.format("delete from `test-dataset.records` where true",  getDatasetId(),  getTableId());
runQuery(bigQuery, q)

this works as expected

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