You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/03/12 19:44:19 UTC

[GitHub] [incubator-druid] shuqi7 opened a new pull request #7244: [Console] Add SQL auto complete in druid console

shuqi7 opened a new pull request #7244: [Console] Add SQL auto complete in druid console
URL: https://github.com/apache/incubator-druid/pull/7244
 
 
   In the SQL console, we are enabling auto complete by detecting keywords from:
   - Local words
   - Datasource names
   - Database column names
   - Druid SQL functions
   
   Things to note:
   1. The function documentation, i.e. syntax and usage, will be displayed when hovering over the function in the popover list.
   2. Auto complete can be disabled by the user and will always be disable when the user input JSON data rather than SQL queries in the text area
   3. The SQL function documentation is saved as a JSON variable in a TypeScript file, which is auto generated by the `create-sql-function-doc` in `script` directory in `web-console`.
   4. Before running `npm start` in `web-console`, run `./script/build` in the `web-console` directory to generate the SQL function documentation file, and do not modify the file in anyway.
   
   ![image](https://user-images.githubusercontent.com/29443129/54227058-54472580-44bc-11e9-9ff1-473e84852291.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org