-
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 #8932
Conversation
48f50f1
to
33839fd
Compare
core/trino-main/src/main/java/io/trino/execution/TruncateTableTask.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/testing/TestingAccessControlManager.java
Outdated
Show resolved
Hide resolved
...plugin-toolkit/src/main/java/io/trino/plugin/base/security/FileBasedSystemAccessControl.java
Show resolved
Hide resolved
...trino-plugin-toolkit/src/main/java/io/trino/plugin/base/security/FileBasedAccessControl.java
Show resolved
Hide resolved
plugin/trino-phoenix/src/main/java/io/trino/plugin/phoenix/PhoenixMetadata.java
Show resolved
Hide resolved
testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java
Outdated
Show resolved
Hide resolved
testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java
Show resolved
Hide resolved
Do you know how ANSI SQL defines |
Sounds more like "DDL" to me (i.e. could follow the same way as DROP TABLE is done, as they are somewhat similar). |
It's defined as DML according to this page. |
33839fd
to
70c1d4c
Compare
@kokosing Applied comments. |
testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java
Show resolved
Hide resolved
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/BaseJdbcClient.java
Show resolved
Hide resolved
DML vs DDL are irrelevant. There's no such a distinction in the SQL standard. In Trino, some things are implemented as |
The syntax matches what's described in the SQL spec, so I remove the |
4cda58f
to
6c2adc6
Compare
6c2adc6
to
7cecf54
Compare
7cecf54
to
bb02671
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% one comment
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/CachingJdbcClient.java
Show resolved
Hide resolved
bb02671
to
517b159
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs part looks good to go.
d5cb204
to
16b1d88
Compare
16b1d88
to
05a8822
Compare
Cherry-pick of trinodb/trino#8932 Co-authored-by: Yuya Ebihara <yuya.ebihara@starburstdata.com>
Cherry-pick of trinodb/trino#8932 Co-authored-by: Yuya Ebihara <yuya.ebihara@starburstdata.com>
Fixes #8921
Question: Should we implement as DML in Trino? Implementing as DDL simplifies some code around planning.