Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6276

SQL: Investigate parser generators

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 2.4
    • sql
    • None

    Description

      Now ignite relies on H2 for SQL processing. It has been discussed many times on dev list that we must start introducing our own SQL core in small incremental steps.

      Let's start with analyzing the options for implementing the parser part.

      We may begin with http://www.antlr.org/ and create a simple separate project that would generate the parser for some simple DDL commands like DROP INDEX.
      This will give us a hint on the complexity and limitations of the approach.

      1) Set up Maven/ANTLR.
      2) Prepare lexer/parser.
      3) Generate.
      4) Write a test.

      Attachments

        1. antlr4-ignite.zip
          13 kB
          Sergey Kalashnikov
        2. IGNITE-6276.patch
          85 kB
          Sergey Kalashnikov

        Issue Links

          Activity

            People

              skalashnikov Sergey Kalashnikov
              skalashnikov Sergey Kalashnikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: