feat(sql): support truncate table if exists#5780
feat(sql): support truncate table if exists#5780aleksandarskrbic wants to merge 22 commits intoquestdb:masterfrom
Conversation
| ); | ||
|
|
||
| // this query will fail silently because z does not exists | ||
| execute("truncate table if exists x, y, z"); |
There was a problem hiding this comment.
What behaviour is expected here?
For example in this query if x,y tables are present and z is not, to we want to execute truncate on existing tables and just ignore z.
There was a problem hiding this comment.
I would expect this to fail with invalid syntax.
Truncating multiple tables in one statement is a very unusual feature; we do not need to have it.
There was a problem hiding this comment.
I agree, just wanted to be sure. Thanks!
|
|
|
Please fix the test failure: |
|
@ideoma I see a bunch of PR related to this issue were submitted 2 weeks after my solution, and one of them already got approved. Guess this can be closed. |
|
work merged into #6020 thank you @aleksandarskrbic we will acknowledge your contribution in the release notes |
Implements: #5763