HUE-9370 [editor] Reduce duplication for ALTER, DROP and SHOW in the Presto parser

Review Request #15220 — Created June 9, 2020 and submitted

johan
hue
master
hue
ranade, romain, Sreenath, yingc
commit 50384cdcdf34249b493bf2609b3c2733e548b227
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Jun 9 09:47:51 2020 +0200

    HUE-9370 [editor] Reduce duplication for ALTER, DROP and SHOW in the Presto parser
    
    This also introduces a means of controlling keyword suggestions outside the grammar.

:100644 100644 c34b1913a9 66c93d95af R096	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_alter.jison	desktop/core/src/desktop/js/parse/jison/sql/hive/alter/sql_alter.jison
:000000 100644 0000000000 e6a017de11 A	desktop/core/src/desktop/js/parse/jison/sql/hive/alter/sql_alter_materialized_view.jison
:000000 100644 0000000000 f5ee11c295 A	desktop/core/src/desktop/js/parse/jison/sql/hive/common/sql_table_constraint.jison
:100644 100644 07b94de73c 7d29ebaee6 R098	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_drop.jison	desktop/core/src/desktop/js/parse/jison/sql/hive/drop/sql_drop.jison
:000000 100644 0000000000 1bbf9c0398 A	desktop/core/src/desktop/js/parse/jison/sql/hive/drop/sql_drop_materialized_view.jison
:100644 100644 7f9b8de5af ca3d43ff00 R097	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_show.jison	desktop/core/src/desktop/js/parse/jison/sql/hive/show/sql_show.jison
:000000 100644 0000000000 b6692ef7d5 A	desktop/core/src/desktop/js/parse/jison/sql/hive/show/sql_show_materialized_views.jison
:100644 000000 4742b61efe 0000000000 D	desktop/core/src/desktop/js/parse/jison/sql/hive/sql_alter.jison
:100644 100644 fa8b6a8511 387dec077b M	desktop/core/src/desktop/js/parse/jison/sql/hive/sql_create.jison
:100644 000000 5e3a2ba28a 0000000000 D	desktop/core/src/desktop/js/parse/jison/sql/hive/sql_drop.jison
:000000 100644 0000000000 b468928fbf A	desktop/core/src/desktop/js/parse/jison/sql/hive/sql_msck.jison
:100644 000000 50b3e76b2d 0000000000 D	desktop/core/src/desktop/js/parse/jison/sql/hive/sql_show.jison
:100644 100644 af977f0f5d 0abad227f0 M	desktop/core/src/desktop/js/parse/jison/sql/hive/structure.json
:000000 100644 0000000000 5610f179ad A	desktop/core/src/desktop/js/parse/jison/sql/presto/common/table_constraint.jison
:100644 000000 36974dbd30 0000000000 D	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_grant.jison
:100644 000000 ea50c68e27 0000000000 D	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_insert.jison
:000000 100644 0000000000 bcd2c6a741 A	desktop/core/src/desktop/js/parse/jison/sql/presto/sql_msck.jison
:100644 100644 1f5b0bbc86 1f5f750323 M	desktop/core/src/desktop/js/parse/jison/sql/presto/structure.json
:100644 100644 5836e56844 21194ea66a M	desktop/core/src/desktop/js/parse/sql/druid/sqlParseSupport.js
:100644 100644 5836e56844 21194ea66a M	desktop/core/src/desktop/js/parse/sql/elasticsearch/sqlParseSupport.js
:100644 100644 5836e56844 ed6f1d51a4 M	desktop/core/src/desktop/js/parse/sql/flink/sqlParseSupport.js
:100644 100644 5836e56844 ed6f1d51a4 M	desktop/core/src/desktop/js/parse/sql/generic/sqlParseSupport.js
:100644 100644 54db227593 646b736361 M	desktop/core/src/desktop/js/parse/sql/hive/hiveAutocompleteParser.js
:100644 100644 da2e20fb85 6efdbcd421 M	desktop/core/src/desktop/js/parse/sql/hive/hiveSyntaxParser.js
:000000 100644 0000000000 f11c5a0d59 A	desktop/core/src/desktop/js/parse/sql/hive/keywords.json
:100644 100644 94bb4e0d98 cb465a2396 M	desktop/core/src/desktop/js/parse/sql/hive/sqlParseSupport.js
:100644 100644 eab0f4c33e ecbf8e77c6 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Alter.test.js
:100644 100644 2d0f8b2c9a d3b1bde595 M	desktop/core/src/desktop/js/parse/sql/impala/sqlParseSupport.js
:100644 100644 a22b31693d 77ff21c16d M	desktop/core/src/desktop/js/parse/sql/ksql/sqlParseSupport.js
:100644 100644 5836e56844 ed6f1d51a4 M	desktop/core/src/desktop/js/parse/sql/phoenix/sqlParseSupport.js
:000000 100644 0000000000 9b41d8a31e A	desktop/core/src/desktop/js/parse/sql/presto/keywords.json
:100644 100644 b454f763ce bdba73995a M	desktop/core/src/desktop/js/parse/sql/presto/prestoAutocompleteParser.js
:100644 100644 dcfe559faf 189cfd6a66 M	desktop/core/src/desktop/js/parse/sql/presto/prestoSyntaxParser.js
:100644 100644 1cc5f37b6c 07276cf485 M	desktop/core/src/desktop/js/parse/sql/presto/sqlParseSupport.js
:100644 100644 2ba574a694 f7e292d251 M	desktop/core/src/desktop/js/parse/sql/sqlParseUtils.js
Manual on Chrome
romain
  1. Nice!

  2. 
      
johan
Review request changed

Status: Closed (submitted)

Loading...