validateQuerySchema

Validates the provided SQL query schema against Calcite's SQL parser and validator. Optionally applies custom literal type checks if the VALIDATE_LITERAL_TYPES flag is enabled.

Parameters

fn

A string indicating the source or context of the SQL query (e.g., function name or identifier).

sql

The SQL query string to be validated.