From 57be867d625876737eca34ee71824b6c7c2921f3 Mon Sep 17 00:00:00 2001 From: Alison Date: Thu, 31 Aug 2017 06:28:09 -0500 Subject: [PATCH 1/2] Sort partitioned columns at top of table list #227 --- redash/query_runner/athena.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redash/query_runner/athena.py b/redash/query_runner/athena.py index df831b8c36..6e7da6c65c 100644 --- a/redash/query_runner/athena.py +++ b/redash/query_runner/athena.py @@ -125,6 +125,7 @@ def get_schema(self, get_stats=False): SELECT table_schema, table_name, column_name, data_type as column_type, comment as extra_info FROM information_schema.columns WHERE table_schema NOT IN ('information_schema') + ORDER BY 1, 5 DESC """ results, error = self.run_query(query, None) From 4ff1eb934e7c88b3dea46b2b2ac8bf8e188a4893 Mon Sep 17 00:00:00 2001 From: Alison Date: Thu, 31 Aug 2017 06:46:19 -0500 Subject: [PATCH 2/2] Turn off basic autocomplete in addition to live autocomplete --- client/app/pages/queries/query-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/app/pages/queries/query-editor.js b/client/app/pages/queries/query-editor.js index acbbf1664b..bd61f40ffd 100644 --- a/client/app/pages/queries/query-editor.js +++ b/client/app/pages/queries/query-editor.js @@ -78,8 +78,10 @@ function queryEditor(QuerySnippet) { // as it makes typing slower. if (tokensCount > 3000) { editor.setOption('enableLiveAutocompletion', false); + editor.setOption('enableBasicAutocompletion', false); } else { editor.setOption('enableLiveAutocompletion', true); + editor.setOption('enableBasicAutocompletion', true); } } });