Browse Source

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

For Impala the syntax does not include the "[]".
Johan Ahlen 10 năm trước cách đây
mục cha
commit
5038f88
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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;
             }
             if (entry.definition.isArray || entry.definition.isMapValue) {
-              parts.push("[]");
+              if (self.assistSource.assistHelper.type === 'hive') {
+                parts.push("[]");
+              }
             } else {
               parts.push(entry.definition.name);
               parts.push(".");