Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Current, all statements in sql client are parsed via regex matching, which has many limitations, such as it can't handle comments. To avoid that limitations, we should try best to use sql parser to parse a statement. There are many statement can't be handle by sql parser, such as: set, reset. so they are still handle through regex matching.
statements handled through regex matching:
quit, exit, clear, help, desc, explain, set, reset source, show modules
statements handled through sql parser:
show catalogs, show databases, show tables, show functions, use catalog, use, describe, explain plan for, select, insert, DDLs
note: we keep `explain xx`, and also support `explain plan for xx`
Attachments
Issue Links
- fixes
-
FLINK-15126 migrate "show functions" from sql cli to sql parser
- Closed
- relates to
-
FLINK-17190 SQL client does not support views that reference a table from DDL
- Closed
- links to