Skip to content

Allow certain functions without parentheses in SQL #52102

@alexey-milovidov

Description

@alexey-milovidov

Use case

Allow the ugliness of
SELECT NOW, CURRENT_TIMESTAMP
to work as well as a normal, beautiful query:
SELECT now()

Describe the solution you'd like

Function factory should support obtaining a property "does the function allow omitting the arguments list".
If an identifier is not resolved in a query, the function factory will be queried for the existing function, and we'll check that property. We will provide a good exception message if the function with the specified name exists but does not allow omitting the parenthesis.

Metadata

Metadata

Assignees

Labels

featurewarmup taskThe task for new ClickHouse team members. Low risk, moderate complexity, no urgency.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions