@gingkoo/pandora-metabase 1.0.147 → 1.0.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/utils.js +1 -1
- package/lib/es/utils.js +1 -1
- package/package.json +1 -1
package/lib/cjs/utils.js
CHANGED
|
@@ -239,7 +239,7 @@ var mergeSubQueryColumns = exports.mergeSubQueryColumns = function mergeSubQuery
|
|
|
239
239
|
name_zh: existingCol ? existingCol.name_zh || '' : newColumn.name_zh || '',
|
|
240
240
|
fieldAlias: getOuterSubQueryFieldAlias(existingCol, newCol),
|
|
241
241
|
fieldUuid: newCol.fieldUuid || (existingCol === null || existingCol === void 0 ? void 0 : existingCol.fieldUuid) || (0, _helper2.uuidv4)('field'),
|
|
242
|
-
select:
|
|
242
|
+
select: existingCol ? Boolean(existingCol.select) : isSelectFields || Boolean(newCol.select)
|
|
243
243
|
}, newColumn.summarizeType ? (0, _defineProperty2["default"])({}, SUB_QUERY_OUTPUT_COLUMN_KEY, true) : {});
|
|
244
244
|
return nextCol;
|
|
245
245
|
});
|
package/lib/es/utils.js
CHANGED
|
@@ -225,7 +225,7 @@ export var mergeSubQueryColumns = function mergeSubQueryColumns(columns) {
|
|
|
225
225
|
name_zh: existingCol ? existingCol.name_zh || '' : newColumn.name_zh || '',
|
|
226
226
|
fieldAlias: getOuterSubQueryFieldAlias(existingCol, newCol),
|
|
227
227
|
fieldUuid: newCol.fieldUuid || (existingCol === null || existingCol === void 0 ? void 0 : existingCol.fieldUuid) || uuidv4('field'),
|
|
228
|
-
select:
|
|
228
|
+
select: existingCol ? Boolean(existingCol.select) : isSelectFields || Boolean(newCol.select)
|
|
229
229
|
}, newColumn.summarizeType ? _defineProperty({}, SUB_QUERY_OUTPUT_COLUMN_KEY, true) : {});
|
|
230
230
|
return nextCol;
|
|
231
231
|
});
|