Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-3234

[editor] Create parser on par with existing autocompleter

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.10.0
    • Fix Version/s: None
    • Component/s: app.editor
    • Labels:
      None

      Description

      The current SQL autocomplete in Hue has arbitrary support for various parts of a SQL statement and is built using regular expressions. In the current state it's difficult to maintain and improve.

      The proper way is to use the grammar definition and generate a parser that supports autocomplete. We need something that reads similar to the grammar for each dialect so we know exactly where to implement changes or new features. For example the "Select Syntax" on: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select

      By doing this it will also allow us to suggest the right keyword based on the cursor position, currently it will suggest all possible keywords no matter where the cursor is.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan.ahlen Johan Åhlén
                Reporter:
                johan.ahlen Johan Åhlén
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: