Przeglądaj źródła

HUE-8856 [autocomplete] Adjust header and footer jison for extracted parsers

Johan Ahlen 6 lat temu
rodzic
commit
5d18f6936a
53 zmienionych plików z 285 dodań i 0 usunięć
  1. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/autocomplete_footer.jison
  2. 29 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/autocomplete_header.jison
  3. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql.jisonlex
  4. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_alter.jison
  5. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_create.jison
  6. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_drop.jison
  7. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_error.jison
  8. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_insert.jison
  9. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_main.jison
  10. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_set.jison
  11. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_update.jison
  12. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_use.jison
  13. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/sql_valueExpression.jison
  14. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/syntax_footer.jison
  15. 28 0
      desktop/core/src/desktop/js/parse/jison/sql/generic/syntax_header.jison
  16. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/autocomplete_footer.jison
  17. 29 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/autocomplete_header.jison
  18. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql.jisonlex
  19. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_alter.jison
  20. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_analyze.jison
  21. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_create.jison
  22. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_drop.jison
  23. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_error.jison
  24. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_grant.jison
  25. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_insert.jison
  26. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_load.jison
  27. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_main.jison
  28. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_set.jison
  29. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_show.jison
  30. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_update.jison
  31. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_use.jison
  32. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/sql_valueExpression.jison
  33. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/syntax_footer.jison
  34. 28 0
      desktop/core/src/desktop/js/parse/jison/sql/hive/syntax_header.jison
  35. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/autocomplete_footer.jison
  36. 29 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/autocomplete_header.jison
  37. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql.jisonlex
  38. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_alter.jison
  39. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_analyze.jison
  40. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_create.jison
  41. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_drop.jison
  42. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_error.jison
  43. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_grant.jison
  44. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_insert.jison
  45. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_load.jison
  46. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_main.jison
  47. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_set.jison
  48. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_show.jison
  49. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_update.jison
  50. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_use.jison
  51. 0 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/sql_valueExpression.jison
  52. 19 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/syntax_footer.jison
  53. 28 0
      desktop/core/src/desktop/js/parse/jison/sql/impala/syntax_header.jison

+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/generic/autocomplete_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSqlParser(parser);

+ 29 - 0
desktop/core/src/desktop/js/parse/jison/sql/generic/autocomplete_header.jison

@@ -0,0 +1,29 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'CURSOR' 'PARTIAL_CURSOR'
+%nonassoc 'IN' 'IS' 'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlAutocomplete
+
+%%

+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql.jisonlex → desktop/core/src/desktop/js/parse/jison/sql/generic/sql.jisonlex


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_alter.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_alter.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_create.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_create.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_drop.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_drop.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_error.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_error.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_insert.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_insert.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_main.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_main.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_set.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_set.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_update.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_update.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_use.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_use.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/generic/sql_valueExpression.jison → desktop/core/src/desktop/js/parse/jison/sql/generic/sql_valueExpression.jison


+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/generic/syntax_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSyntaxParser(parser);

+ 28 - 0
desktop/core/src/desktop/js/parse/jison/sql/generic/syntax_header.jison

@@ -0,0 +1,28 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'IN' 'IS' 'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlSyntax
+
+%%

+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/hive/autocomplete_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSqlParser(parser);

+ 29 - 0
desktop/core/src/desktop/js/parse/jison/sql/hive/autocomplete_header.jison

@@ -0,0 +1,29 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'CURSOR' 'PARTIAL_CURSOR'
+%nonassoc 'IN' 'IS' 'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlAutocomplete
+
+%%

+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql.jisonlex → desktop/core/src/desktop/js/parse/jison/sql/hive/sql.jisonlex


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_alter.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_alter.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_analyze.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_analyze.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_create.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_create.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_drop.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_drop.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_error.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_error.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_grant.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_grant.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_insert.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_insert.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_load.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_load.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_main.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_main.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_set.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_set.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_show.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_show.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_update.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_update.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_use.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_use.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/hive/sql_valueExpression.jison → desktop/core/src/desktop/js/parse/jison/sql/hive/sql_valueExpression.jison


+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/hive/syntax_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSyntaxParser(parser);

+ 28 - 0
desktop/core/src/desktop/js/parse/jison/sql/hive/syntax_header.jison

@@ -0,0 +1,28 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'IN' 'IS'  'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlSyntax
+
+%%

+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/impala/autocomplete_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSqlParser(parser);

+ 29 - 0
desktop/core/src/desktop/js/parse/jison/sql/impala/autocomplete_header.jison

@@ -0,0 +1,29 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'CURSOR' 'PARTIAL_CURSOR'
+%nonassoc 'IN' 'IS' '<impala>ILIKE' '<impala>IREGEXP' 'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlAutocomplete
+
+%%

+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql.jisonlex → desktop/core/src/desktop/js/parse/jison/sql/impala/sql.jisonlex


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_alter.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_alter.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_analyze.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_analyze.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_create.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_create.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_drop.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_drop.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_error.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_error.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_grant.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_grant.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_insert.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_insert.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_load.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_load.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_main.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_main.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_set.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_set.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_show.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_show.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_update.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_update.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_use.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_use.jison


+ 0 - 0
desktop/core/src/desktop/js/parse/jison/impala/sql_valueExpression.jison → desktop/core/src/desktop/js/parse/jison/sql/impala/sql_valueExpression.jison


+ 19 - 0
desktop/core/src/desktop/js/parse/jison/sql/impala/syntax_footer.jison

@@ -0,0 +1,19 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%%
+
+SqlParseSupport.initSyntaxParser(parser);

+ 28 - 0
desktop/core/src/desktop/js/parse/jison/sql/impala/syntax_header.jison

@@ -0,0 +1,28 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+%left 'AND' 'OR'
+%left 'BETWEEN'
+%left 'NOT' '!' '~'
+%left '=' '<' '>' 'COMPARISON_OPERATOR'
+%left '-' '*' 'ARITHMETIC_OPERATOR'
+
+%left ';' ','
+%nonassoc 'IN' 'IS' '<impala>ILIKE' '<impala>IREGEXP' 'LIKE' 'RLIKE' 'REGEXP' 'EXISTS' NEGATION
+
+%start SqlSyntax
+
+%%