Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/main/sphinx/language/reserved.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Keyword SQL:2016 SQL-92
``CURRENT_TIMESTAMP`` reserved reserved
``CURRENT_USER`` reserved
``DEALLOCATE`` reserved reserved
``DEFAULT`` reserved reserved
Copy link
Copy Markdown
Member

@ebyhr ebyhr Mar 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

``DELETE`` reserved reserved
``DESCRIBE`` reserved reserved
``DISTINCT`` reserved reserved
Expand Down