Repository: ambari Updated Branches: refs/heads/branch-2.5 d9b303019 -> ef792c5d2
AMBARI-19673. Hive View 2.0: Code hints for query editor are not working (Abhishek Kumar via pallavkul) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ef792c5d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ef792c5d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ef792c5d Branch: refs/heads/branch-2.5 Commit: ef792c5d24a45da624a54917b682c3e788d4c593 Parents: d9b3030 Author: pallavkul <pallav....@gmail.com> Authored: Tue Feb 28 21:39:32 2017 +0530 Committer: pallavkul <pallav....@gmail.com> Committed: Tue Feb 28 21:43:00 2017 +0530 ---------------------------------------------------------------------- .../hive20/src/main/resources/ui/app/components/query-editor.js | 1 - contrib/views/hive20/src/main/resources/ui/ember-cli-build.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ef792c5d/contrib/views/hive20/src/main/resources/ui/app/components/query-editor.js ---------------------------------------------------------------------- diff --git a/contrib/views/hive20/src/main/resources/ui/app/components/query-editor.js b/contrib/views/hive20/src/main/resources/ui/app/components/query-editor.js index 3175a35..c033e42 100644 --- a/contrib/views/hive20/src/main/resources/ui/app/components/query-editor.js +++ b/contrib/views/hive20/src/main/resources/ui/app/components/query-editor.js @@ -36,7 +36,6 @@ export default Ember.Component.extend({ this.set('editor', CodeMirror.fromTextArea(document.getElementById('code-mirror'), { mode: 'text/x-hive', - hint: CodeMirror.hint.sql, indentWithTabs: true, smartIndent: true, lineNumbers: true, http://git-wip-us.apache.org/repos/asf/ambari/blob/ef792c5d/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js ---------------------------------------------------------------------- diff --git a/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js b/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js index c88799a..01682e7 100644 --- a/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js +++ b/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js @@ -52,6 +52,7 @@ module.exports = function(defaults) { app.import('bower_components/codemirror/lib/codemirror.js'); app.import('bower_components/codemirror/addon/hint/sql-hint.js'); + app.import('bower_components/codemirror/mode/sql/sql.js'); app.import('bower_components/codemirror/addon/hint/show-hint.js'); app.import('bower_components/d3/d3.js'); app.import('bower_components/webcola/WebCola/cola.min.js');