@milaboratories/milaboratories.pool-explorer.model 1.0.104 → 1.0.105
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/bundle.js +84 -84
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.pool-explorer.model@1.0.
|
|
3
|
+
> @milaboratories/milaboratories.pool-explorer.model@1.0.105 build /home/runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
|
|
4
4
|
> ts-builder build --target block-model && block-tools build-model
|
|
5
5
|
|
|
6
6
|
Building block-model project...
|
|
7
7
|
↳ rollup -c /configs/rollup.block-model.config.js
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist, dist[22m...[39m
|
|
10
|
-
[32mcreated [1mdist, dist[22m in [
|
|
10
|
+
[32mcreated [1mdist, dist[22m in [1m8.6s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./src/index.ts[22m → [1mdist[22m...[39m
|
|
13
13
|
[1m[33m(!) Circular dependency[39m[22m
|
|
14
14
|
../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/components/PlDataTable.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
|
|
15
|
-
[32mcreated [1mdist[22m in [
|
|
15
|
+
[32mcreated [1mdist[22m in [1m7.5s[22m[39m
|
|
16
16
|
Build completed successfully
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.pool-explorer.model@1.0.
|
|
3
|
+
> @milaboratories/milaboratories.pool-explorer.model@1.0.105 type-check /home/runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
|
|
4
4
|
> ts-builder types --target block-model
|
|
5
5
|
|
|
6
6
|
↳ tsc --noEmit --project ./tsconfig.json
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -5451,6 +5451,89 @@
|
|
|
5451
5451
|
const StagingAccessorName = 'staging';
|
|
5452
5452
|
const MainAccessorName = 'main';
|
|
5453
5453
|
|
|
5454
|
+
function filterDataInfoEntries(dataInfoEntries, axisFilters) {
|
|
5455
|
+
// Sort filters by axis index in descending order to safely remove elements from arrays
|
|
5456
|
+
const sortedFilters = [...axisFilters].sort((a, b) => b[0] - a[0]);
|
|
5457
|
+
// Check for invalid filter axes
|
|
5458
|
+
const { type } = dataInfoEntries;
|
|
5459
|
+
switch (type) {
|
|
5460
|
+
case 'Json': {
|
|
5461
|
+
const { keyLength } = dataInfoEntries;
|
|
5462
|
+
for (const [axisIdx] of axisFilters)
|
|
5463
|
+
if (axisIdx >= keyLength)
|
|
5464
|
+
throw new Error(`Can't filter on non-data axis ${axisIdx}. Must be >= ${keyLength}`);
|
|
5465
|
+
break;
|
|
5466
|
+
}
|
|
5467
|
+
case 'JsonPartitioned':
|
|
5468
|
+
case 'BinaryPartitioned':
|
|
5469
|
+
case 'ParquetPartitioned': {
|
|
5470
|
+
const { partitionKeyLength } = dataInfoEntries;
|
|
5471
|
+
for (const [axisIdx] of axisFilters)
|
|
5472
|
+
if (axisIdx >= partitionKeyLength)
|
|
5473
|
+
throw new Error(`Can't filter on non-partitioned axis ${axisIdx}. Must be >= ${partitionKeyLength}`);
|
|
5474
|
+
break;
|
|
5475
|
+
}
|
|
5476
|
+
default:
|
|
5477
|
+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5478
|
+
throw new Error(`Unsupported data info type: ${type}`);
|
|
5479
|
+
}
|
|
5480
|
+
const keyMatchesFilters = (key) => {
|
|
5481
|
+
for (const [axisIdx, axisValue] of sortedFilters)
|
|
5482
|
+
if (key[axisIdx] !== axisValue)
|
|
5483
|
+
return false;
|
|
5484
|
+
return true;
|
|
5485
|
+
};
|
|
5486
|
+
const removeFilteredAxes = (key) => {
|
|
5487
|
+
const newKey = [...key];
|
|
5488
|
+
// Remove axes in descending order to maintain correct indices
|
|
5489
|
+
for (const [axisIdx] of sortedFilters)
|
|
5490
|
+
newKey.splice(axisIdx, 1);
|
|
5491
|
+
return newKey;
|
|
5492
|
+
};
|
|
5493
|
+
switch (dataInfoEntries.type) {
|
|
5494
|
+
case 'Json': return {
|
|
5495
|
+
type: 'Json',
|
|
5496
|
+
keyLength: dataInfoEntries.keyLength - axisFilters.length,
|
|
5497
|
+
data: dataInfoEntries.data
|
|
5498
|
+
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5499
|
+
.map((entry) => ({
|
|
5500
|
+
key: removeFilteredAxes(entry.key),
|
|
5501
|
+
value: entry.value,
|
|
5502
|
+
})),
|
|
5503
|
+
};
|
|
5504
|
+
case 'JsonPartitioned': return {
|
|
5505
|
+
type: 'JsonPartitioned',
|
|
5506
|
+
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
5507
|
+
parts: dataInfoEntries.parts
|
|
5508
|
+
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5509
|
+
.map((entry) => ({
|
|
5510
|
+
key: removeFilteredAxes(entry.key),
|
|
5511
|
+
value: entry.value,
|
|
5512
|
+
})),
|
|
5513
|
+
};
|
|
5514
|
+
case 'BinaryPartitioned': return {
|
|
5515
|
+
type: 'BinaryPartitioned',
|
|
5516
|
+
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
5517
|
+
parts: dataInfoEntries.parts
|
|
5518
|
+
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5519
|
+
.map((entry) => ({
|
|
5520
|
+
key: removeFilteredAxes(entry.key),
|
|
5521
|
+
value: entry.value,
|
|
5522
|
+
})),
|
|
5523
|
+
};
|
|
5524
|
+
case 'ParquetPartitioned': return {
|
|
5525
|
+
type: 'ParquetPartitioned',
|
|
5526
|
+
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
5527
|
+
parts: dataInfoEntries.parts
|
|
5528
|
+
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5529
|
+
.map((entry) => ({
|
|
5530
|
+
key: removeFilteredAxes(entry.key),
|
|
5531
|
+
value: entry.value,
|
|
5532
|
+
})),
|
|
5533
|
+
};
|
|
5534
|
+
}
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5454
5537
|
const TraceEntry = z.object({
|
|
5455
5538
|
type: z.string(),
|
|
5456
5539
|
importance: z.number().optional(),
|
|
@@ -5935,89 +6018,6 @@
|
|
|
5935
6018
|
throw new Error(`Unexpected input type: ${typeof acc}`);
|
|
5936
6019
|
}
|
|
5937
6020
|
|
|
5938
|
-
function filterDataInfoEntries(dataInfoEntries, axisFilters) {
|
|
5939
|
-
// Sort filters by axis index in descending order to safely remove elements from arrays
|
|
5940
|
-
const sortedFilters = [...axisFilters].sort((a, b) => b[0] - a[0]);
|
|
5941
|
-
// Check for invalid filter axes
|
|
5942
|
-
const { type } = dataInfoEntries;
|
|
5943
|
-
switch (type) {
|
|
5944
|
-
case 'Json': {
|
|
5945
|
-
const { keyLength } = dataInfoEntries;
|
|
5946
|
-
for (const [axisIdx] of axisFilters)
|
|
5947
|
-
if (axisIdx >= keyLength)
|
|
5948
|
-
throw new Error(`Can't filter on non-data axis ${axisIdx}. Must be >= ${keyLength}`);
|
|
5949
|
-
break;
|
|
5950
|
-
}
|
|
5951
|
-
case 'JsonPartitioned':
|
|
5952
|
-
case 'BinaryPartitioned':
|
|
5953
|
-
case 'ParquetPartitioned': {
|
|
5954
|
-
const { partitionKeyLength } = dataInfoEntries;
|
|
5955
|
-
for (const [axisIdx] of axisFilters)
|
|
5956
|
-
if (axisIdx >= partitionKeyLength)
|
|
5957
|
-
throw new Error(`Can't filter on non-partitioned axis ${axisIdx}. Must be >= ${partitionKeyLength}`);
|
|
5958
|
-
break;
|
|
5959
|
-
}
|
|
5960
|
-
default:
|
|
5961
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5962
|
-
throw new Error(`Unsupported data info type: ${type}`);
|
|
5963
|
-
}
|
|
5964
|
-
const keyMatchesFilters = (key) => {
|
|
5965
|
-
for (const [axisIdx, axisValue] of sortedFilters)
|
|
5966
|
-
if (key[axisIdx] !== axisValue)
|
|
5967
|
-
return false;
|
|
5968
|
-
return true;
|
|
5969
|
-
};
|
|
5970
|
-
const removeFilteredAxes = (key) => {
|
|
5971
|
-
const newKey = [...key];
|
|
5972
|
-
// Remove axes in descending order to maintain correct indices
|
|
5973
|
-
for (const [axisIdx] of sortedFilters)
|
|
5974
|
-
newKey.splice(axisIdx, 1);
|
|
5975
|
-
return newKey;
|
|
5976
|
-
};
|
|
5977
|
-
switch (dataInfoEntries.type) {
|
|
5978
|
-
case 'Json': return {
|
|
5979
|
-
type: 'Json',
|
|
5980
|
-
keyLength: dataInfoEntries.keyLength - axisFilters.length,
|
|
5981
|
-
data: dataInfoEntries.data
|
|
5982
|
-
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5983
|
-
.map((entry) => ({
|
|
5984
|
-
key: removeFilteredAxes(entry.key),
|
|
5985
|
-
value: entry.value,
|
|
5986
|
-
})),
|
|
5987
|
-
};
|
|
5988
|
-
case 'JsonPartitioned': return {
|
|
5989
|
-
type: 'JsonPartitioned',
|
|
5990
|
-
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
5991
|
-
parts: dataInfoEntries.parts
|
|
5992
|
-
.filter((entry) => keyMatchesFilters(entry.key))
|
|
5993
|
-
.map((entry) => ({
|
|
5994
|
-
key: removeFilteredAxes(entry.key),
|
|
5995
|
-
value: entry.value,
|
|
5996
|
-
})),
|
|
5997
|
-
};
|
|
5998
|
-
case 'BinaryPartitioned': return {
|
|
5999
|
-
type: 'BinaryPartitioned',
|
|
6000
|
-
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
6001
|
-
parts: dataInfoEntries.parts
|
|
6002
|
-
.filter((entry) => keyMatchesFilters(entry.key))
|
|
6003
|
-
.map((entry) => ({
|
|
6004
|
-
key: removeFilteredAxes(entry.key),
|
|
6005
|
-
value: entry.value,
|
|
6006
|
-
})),
|
|
6007
|
-
};
|
|
6008
|
-
case 'ParquetPartitioned': return {
|
|
6009
|
-
type: 'ParquetPartitioned',
|
|
6010
|
-
partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,
|
|
6011
|
-
parts: dataInfoEntries.parts
|
|
6012
|
-
.filter((entry) => keyMatchesFilters(entry.key))
|
|
6013
|
-
.map((entry) => ({
|
|
6014
|
-
key: removeFilteredAxes(entry.key),
|
|
6015
|
-
value: entry.value,
|
|
6016
|
-
})),
|
|
6017
|
-
};
|
|
6018
|
-
}
|
|
6019
|
-
}
|
|
6020
|
-
|
|
6021
6021
|
function isPColumnValues(value) {
|
|
6022
6022
|
if (!Array.isArray(value))
|
|
6023
6023
|
return false;
|
|
@@ -6860,7 +6860,7 @@
|
|
|
6860
6860
|
}
|
|
6861
6861
|
}
|
|
6862
6862
|
|
|
6863
|
-
var version = "1.
|
|
6863
|
+
var version = "1.45.0";
|
|
6864
6864
|
|
|
6865
6865
|
const PlatformaSDKVersion = version;
|
|
6866
6866
|
|