Truncate table not working
Opened this issue · 1 comments
Ojasv-Singh-Zeotap commented
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 commented
String q = String.format("delete from `test-dataset.records` where true", getDatasetId(), getTableId());
runQuery(bigQuery, q)
this works as expected