-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support TRUNCATE TABLE statement #8921
Comments
Also, the spec says:
|
@martint Thank you sharing the details. I will add some relevant tests. Could you upload the screenshot again? I can't see that. |
We may need to check if the table is empty or not beforehand to achieve this. MySQL, PostgreSQL and Oracle always return 0 in |
does "completion condition is raised: no data" mean "query should fail"? |
It looks like the answer is no, it shouldn't fail. Completion/exception conditions are parallel and somewhat orthogonal to query query success or failure. They are just a classification of the resulting SQLSTATE of the query.
and elsewhere:
|
This statement is DML (not DDL) in ANSI SQL. The keyword
TRUNCATE
is a part of reserved words.Output of other databases:
MySQL
PostgreSQL
MS SQL Server
Oracle
Cassandra
Relates to https://trinodb.slack.com/archives/CFLB9AMBN/p1629328499266100
The text was updated successfully, but these errors were encountered: