Skip to content

SHOW FUNCTIONS allowed syntax does not match source/intent #1399

Description

@findepi

SHOW FUNCTIONS
https://github.com/sqlparser-rs/sqlparser-rs/blob/7282ce22f9f031a2c9fd5831427f01f2f0dbb978/src/ast/mod.rs#L2450-L2453

it allow syntax

SHOW FUNCTIONS
SHOW FUNCTIONS LIKE 'pattern'
SHOW FUNCTIONS ILIKE 'pattern' 
SHOW FUNCTIONS WHERE <expr>

however, it's also documented to match Presto's SHOW FUNCTIONS
which doesn't allow ILIKE nor WHERE (and wouldn't know how the WHERE should be applied)
https://prestodb.io/docs/current/sql/show-functions.html

worth noting that Trino's SHOW FUNCTIONS is similar, but allows additional schema filter
https://trino.io/docs/current/sql/show-functions.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions