Invalid SQL (and files containing it) is returned as a ValidationResult; it is not raised as an exception. Only genuine misuse (unknown dialect, unreadable file) raises. Trino's 83 reserved keywords ...
Follow one question through a production text-to-SQL design: semantic context, clarification, validation, permissions and result checks. Run three plausible queries in your browser and see why only ...
For dialect="trino", validate () also checks that every function called and every data type used in the SQL exists in the documented Trino catalog. Unknown names are reported as non-fatal warnings — ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results