@milaboratories/milaboratories.ui-examples.model 1.2.43 → 1.2.45
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 +13 -0
- package/dist/bundle.js +54 -3
- 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.ui-examples.model@1.2.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.2.45 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/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 [1m9.2s[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 [1m8.8s[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.ui-examples.model@1.2.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.2.45 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> ts-builder types --target block-model
|
|
5
5
|
|
|
6
6
|
↳ tsc --noEmit --project ./tsconfig.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.2.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [fcdb249]
|
|
8
|
+
- @platforma-sdk/model@1.44.13
|
|
9
|
+
|
|
10
|
+
## 1.2.44
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @platforma-sdk/model@1.44.8
|
|
15
|
+
|
|
3
16
|
## 1.2.43
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -5677,9 +5677,11 @@
|
|
|
5677
5677
|
const RT_RESOURCE_MAP_PARTITIONED = PCD_PREFIX + 'Partitioned/ResourceMap';
|
|
5678
5678
|
const RT_JSON_PARTITIONED = PCD_PREFIX + 'JsonPartitioned';
|
|
5679
5679
|
const RT_BINARY_PARTITIONED = PCD_PREFIX + 'BinaryPartitioned';
|
|
5680
|
+
const RT_PARQUET_PARTITIONED = PCD_PREFIX + 'ParquetPartitioned';
|
|
5680
5681
|
const PCD_SUP_PREFIX = PCD_PREFIX + 'Partitioned/';
|
|
5681
5682
|
const RT_JSON_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'JsonPartitioned';
|
|
5682
5683
|
const RT_BINARY_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'BinaryPartitioned';
|
|
5684
|
+
const RT_PARQUET_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'ParquetPartitioned';
|
|
5683
5685
|
const removeIndexSuffix = (keyStr) => {
|
|
5684
5686
|
if (keyStr.endsWith('.index')) {
|
|
5685
5687
|
return { baseKey: keyStr.substring(0, keyStr.length - 6), type: 'index' };
|
|
@@ -5750,7 +5752,7 @@
|
|
|
5750
5752
|
return { data, keyLength };
|
|
5751
5753
|
}
|
|
5752
5754
|
function getUniquePartitionKeysForDataEntries(list) {
|
|
5753
|
-
if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned')
|
|
5755
|
+
if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned' && list.type !== 'ParquetPartitioned')
|
|
5754
5756
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${list.type}`);
|
|
5755
5757
|
const { parts, partitionKeyLength } = list;
|
|
5756
5758
|
const result = [];
|
|
@@ -5809,7 +5811,9 @@
|
|
|
5809
5811
|
const meta = acc.getDataAsJson();
|
|
5810
5812
|
// Prevent recursive super-partitioned resources
|
|
5811
5813
|
if (keyPrefix.length > 0
|
|
5812
|
-
&& (resourceType === RT_JSON_SUPER_PARTITIONED
|
|
5814
|
+
&& (resourceType === RT_JSON_SUPER_PARTITIONED
|
|
5815
|
+
|| resourceType === RT_BINARY_SUPER_PARTITIONED
|
|
5816
|
+
|| resourceType === RT_PARQUET_SUPER_PARTITIONED)) {
|
|
5813
5817
|
throw new Error(`Unexpected nested super-partitioned resource: ${resourceType}`);
|
|
5814
5818
|
}
|
|
5815
5819
|
switch (resourceType) {
|
|
@@ -5877,6 +5881,24 @@
|
|
|
5877
5881
|
parts,
|
|
5878
5882
|
};
|
|
5879
5883
|
}
|
|
5884
|
+
case RT_PARQUET_PARTITIONED: {
|
|
5885
|
+
if (typeof meta?.partitionKeyLength !== 'number') {
|
|
5886
|
+
throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);
|
|
5887
|
+
}
|
|
5888
|
+
const parts = [];
|
|
5889
|
+
for (const keyStr of acc.listInputFields()) {
|
|
5890
|
+
const value = acc.resolve({ field: keyStr, assertFieldType: 'Input' });
|
|
5891
|
+
if (value === undefined)
|
|
5892
|
+
return undefined;
|
|
5893
|
+
const key = [...keyPrefix, ...JSON.parse(keyStr)];
|
|
5894
|
+
parts.push({ key, value });
|
|
5895
|
+
}
|
|
5896
|
+
return {
|
|
5897
|
+
type: 'ParquetPartitioned',
|
|
5898
|
+
partitionKeyLength: meta.partitionKeyLength,
|
|
5899
|
+
parts,
|
|
5900
|
+
};
|
|
5901
|
+
}
|
|
5880
5902
|
case RT_JSON_SUPER_PARTITIONED: {
|
|
5881
5903
|
if (typeof meta?.superPartitionKeyLength !== 'number'
|
|
5882
5904
|
|| typeof meta?.partitionKeyLength !== 'number') {
|
|
@@ -5935,6 +5957,35 @@
|
|
|
5935
5957
|
parts,
|
|
5936
5958
|
};
|
|
5937
5959
|
}
|
|
5960
|
+
case RT_PARQUET_SUPER_PARTITIONED: {
|
|
5961
|
+
if (typeof meta?.superPartitionKeyLength !== 'number'
|
|
5962
|
+
|| typeof meta?.partitionKeyLength !== 'number') {
|
|
5963
|
+
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);
|
|
5964
|
+
}
|
|
5965
|
+
const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;
|
|
5966
|
+
const parts = [];
|
|
5967
|
+
// Process all super partitions
|
|
5968
|
+
for (const supKeyStr of acc.listInputFields()) {
|
|
5969
|
+
const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: 'Input' });
|
|
5970
|
+
if (superPartition === undefined)
|
|
5971
|
+
return undefined;
|
|
5972
|
+
// Validate inner type
|
|
5973
|
+
if (superPartition.resourceType.name !== RT_PARQUET_PARTITIONED) {
|
|
5974
|
+
throw new Error(`Expected ${RT_PARQUET_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);
|
|
5975
|
+
}
|
|
5976
|
+
const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));
|
|
5977
|
+
if (innerResult === undefined)
|
|
5978
|
+
return undefined;
|
|
5979
|
+
if (innerResult.type !== 'ParquetPartitioned')
|
|
5980
|
+
throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);
|
|
5981
|
+
parts.push(...innerResult.parts);
|
|
5982
|
+
}
|
|
5983
|
+
return {
|
|
5984
|
+
type: 'ParquetPartitioned',
|
|
5985
|
+
partitionKeyLength: totalKeyLength,
|
|
5986
|
+
parts,
|
|
5987
|
+
};
|
|
5988
|
+
}
|
|
5938
5989
|
default:
|
|
5939
5990
|
throw new Error(`Unknown resource type: ${resourceType}`);
|
|
5940
5991
|
}
|
|
@@ -6882,7 +6933,7 @@
|
|
|
6882
6933
|
}
|
|
6883
6934
|
}
|
|
6884
6935
|
|
|
6885
|
-
var version = "1.44.
|
|
6936
|
+
var version = "1.44.13";
|
|
6886
6937
|
|
|
6887
6938
|
const PlatformaSDKVersion = version;
|
|
6888
6939
|
|