@forzalabs/remora 0.0.56-nasco.3 → 0.0.57-nasco.3
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/Constants.js
CHANGED
|
@@ -36,7 +36,10 @@ class DatasetRecord {
|
|
|
36
36
|
if (update.toDelete) {
|
|
37
37
|
// To remove
|
|
38
38
|
delete this._value[update.currentDimension.name];
|
|
39
|
-
|
|
39
|
+
if (this._dimensions.some(x => x.key === update.currentDimension.name))
|
|
40
|
+
this._dimensions = this._dimensions.filter(x => x.key !== update.currentDimension.name);
|
|
41
|
+
else
|
|
42
|
+
this._dimensions = this._dimensions.filter(x => x.key !== update.currentDimension.key);
|
|
40
43
|
}
|
|
41
44
|
else if (!update.currentDimension) {
|
|
42
45
|
// To create (at the right position)
|
|
@@ -30,7 +30,7 @@ const Logger_1 = __importDefault(require("../../helper/Logger"));
|
|
|
30
30
|
class ExecutionEnvironment {
|
|
31
31
|
constructor(consumer) {
|
|
32
32
|
this.run = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
var _a, _b;
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
34
|
(0, Affirm_1.default)(this._consumer, 'Invalid consumer');
|
|
35
35
|
const plan = ExecutionPlanner_1.default.plan(this._consumer, options);
|
|
36
36
|
(0, Affirm_1.default)(plan, `Invalid execution plan`);
|
|
@@ -45,7 +45,7 @@ class ExecutionEnvironment {
|
|
|
45
45
|
try {
|
|
46
46
|
for (const planStep of plan) {
|
|
47
47
|
currentStep = planStep;
|
|
48
|
-
Logger_1.default.log(`Started step: ${planStep.type}`);
|
|
48
|
+
Logger_1.default.log(`Started step: ${planStep.type} "${(_b = (_a = planStep.producer) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this._consumer.name}"`);
|
|
49
49
|
switch (planStep.type) {
|
|
50
50
|
case 'compile-consumer-to-SQL': {
|
|
51
51
|
const sql = SQLCompiler_1.default.getConsumerReference(this._consumer);
|
|
@@ -153,7 +153,7 @@ class ExecutionEnvironment {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
catch (error) {
|
|
156
|
-
const ds = (
|
|
156
|
+
const ds = (_c = this._resultingDataset) !== null && _c !== void 0 ? _c : (_d = this._producedData.at(-1)) === null || _d === void 0 ? void 0 : _d.dataset;
|
|
157
157
|
if (ds)
|
|
158
158
|
Logger_1.default.log(`Failed execution of consumer at step ${currentStep.type}:\n\tSize: ${ds.getSize()}\n\tCycles: ${ds.getCycles()}\n\tOperations: ${Logger_1.default.formatList(ds.getOperations())}`);
|
|
159
159
|
Logger_1.default.log(`\tFailed step: ${currentStep.type}->\n\t${error}`);
|