-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HUE-9414. [ui] Publish ERD component to NPM (sree)
- Loading branch information
Showing
6 changed files
with
583 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ build | |
env | ||
metastore_db | ||
VERSION_INFO | ||
npm_dist | ||
|
||
# Generated configuration | ||
desktop/conf/*.ini | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
|
||
https://docs.gethue.com/developer/api/#sql-autocompletion | ||
|
||
npm install gethue | ||
|
||
|
||
import sqlAutocompleteParser from 'gethue/parse/sql/hive/hiveAutocompleteParser'; | ||
|
||
const beforeCursor = 'SELECT col1, col2, tbl2.col3 FROM tbl; '; // Note extra space at end | ||
const afterCursor = ''; | ||
const dialect = 'hive'; | ||
const debug = false; | ||
|
||
console.log( | ||
JSON.stringify( | ||
sqlAutocompleteParser.parseSql(beforeCursor, afterCursor, dialect, debug), | ||
null, | ||
2 | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.