Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6084

Expose list of Drill functions for consumption by JavaScript libraries

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: Web Server
    • Labels:

      Description

      DRILL-5868 introduces SQL highlighter and the auto-complete feature in the web-UI's query editor.
      For the backend Javascript to highlight the keywords correctly as SQL reserved words or functions, it needs a list of all the Drill functions to be already defined in a source JavaScript ( ../mode-sql.js ) .
      While this works well for standard Drill functions, it means that any new function added to Drill needs to be explicitly hard-coded into the file, rather than be programatically discovered and loaded for the library to highlight.

      It would help if this can be done dynamically without contributors having to explicitly alter the script file to add new function names.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkhatua Kunal Khatua
                Reporter:
                kkhatua Kunal Khatua
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: