Преглед на файлове

[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;
             }
             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(".");