Эх сурвалжийг харах

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

For Impala the syntax does not include the "[]".
Johan Ahlen 10 жил өмнө
parent
commit
5038f88

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