app.js 403 B

123456789101112131415
  1. import sqlAutocompleteParser from 'hue/desktop/core/src/desktop/js/parse/sql/hive/hiveAutocompleteParser';
  2. const beforeCursor = 'SELECT col1, col2, tbl2.col3 FROM tbl; '; // Note extra space at end
  3. const afterCursor = '';
  4. const dialect = 'hive';
  5. const debug = false;
  6. console.log(
  7. JSON.stringify(
  8. sqlAutocompleteParser.parseSql(beforeCursor, afterCursor, dialect, debug),
  9. null,
  10. 2
  11. )
  12. );