Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17728

sql client supports parser statements via sql parser

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              godfreyhe godfrey he
              godfreyhe godfrey he
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: