Document DEFAULT keyword as a reserved term#11285
Document DEFAULT keyword as a reserved term#11285jhlodin wants to merge 1 commit intotrinodb:masterfrom
Conversation
|
I considered adding a note about using
Thoughts? |
| ``CURRENT_TIMESTAMP`` reserved reserved | ||
| ``CURRENT_USER`` reserved | ||
| ``DEALLOCATE`` reserved reserved | ||
| ``DEFAULT`` reserved reserved |
There was a problem hiding this comment.
DEFAULT isn't a reserved keyword in Trino at this time. That is why docs-checks job is failing.
https://github.com/trinodb/trino/blob/master/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4#L707-L712
There was a problem hiding this comment.
Maybe I'm misunderstanding, I thought that DEFAULT being an accepted keyword in, at least, the ... SET PROPERTIES foo = DEFAULT context would mean that it's reserved?
There was a problem hiding this comment.
We generally try not to make keywords reserved unless there's a potential ambiguity. I don't think that's the case with DEFAULT. Also, making it reserved would likely cause backwards-compatibility issues.
|
Closing as inaccurate |
We don't support it. |
Description
DEFAULTis used as a keyword in Trino, at least inSET PARAMETERSclauses to revert a parameter back to its default value. It ought to be documented accordingly.Improvement
Documentation
Documenting the
DEFAULTSQL keyword in TrinoRelated issues, pull requests, and links
Documentation
( ) No documentation is needed.
(x) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
(x) No release notes entries required.
( ) Release notes entries required with the following suggested text: