浏览代码

[core] Only include "[]" when inserting complex types from the assist panel for Hive

For Impala the syntax does not include the "[]".
Johan Ahlen 10 年之前
父节点
当前提交
5038f88
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      desktop/core/src/desktop/templates/ko_components.mako

+ 3 - 1
desktop/core/src/desktop/templates/ko_components.mako

@@ -335,7 +335,9 @@ from desktop.views import _ko
               break;
               break;
             }
             }
             if (entry.definition.isArray || entry.definition.isMapValue) {
             if (entry.definition.isArray || entry.definition.isMapValue) {
-              parts.push("[]");
+              if (self.assistSource.assistHelper.type === 'hive') {
+                parts.push("[]");
+              }
             } else {
             } else {
               parts.push(entry.definition.name);
               parts.push(entry.definition.name);
               parts.push(".");
               parts.push(".");