@milaboratories/pl-model-common 1.19.2 → 1.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-common",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "description": "Platforma SDK Model",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -85,7 +85,7 @@ export type BinaryPartitionedDataInfo<Blob> = {
85
85
  parts: Record<string, BinaryChunk<Blob>>;
86
86
  };
87
87
 
88
- type ParquetPartitionInfoMappingAxis = {
88
+ type ParquetChunkMappingAxis = {
89
89
  /** Data type (matches PColumn axis types) */
90
90
  type: 'Int' | 'Long' | 'String';
91
91
 
@@ -93,7 +93,7 @@ type ParquetPartitionInfoMappingAxis = {
93
93
  id: string;
94
94
  };
95
95
 
96
- type ParquetPartitionInfoMappingColumn = {
96
+ type ParquetChunkMappingColumn = {
97
97
  /** Data type (matches PColumn value type) */
98
98
  type: 'Int' | 'Long' | 'Float' | 'Double' | 'String';
99
99
 
@@ -101,41 +101,33 @@ type ParquetPartitionInfoMappingColumn = {
101
101
  id: string;
102
102
  };
103
103
 
104
- type ParquetPartitionInfoMapping = {
105
- /** Axes mappings - Parquet file is sorted by these fields in this order */
106
- axes: ParquetPartitionInfoMappingAxis[];
107
-
108
- /** Column mapping */
109
- column: ParquetPartitionInfoMappingColumn;
104
+ type ParquetChunkStats = {
105
+ /** Number of rows in the chunk */
106
+ numberOfRows?: number;
107
+ /** Byte size information for storage optimization and query planning */
108
+ size?: {
109
+ /** Byte sizes for each axis column in the same order as axes mapping */
110
+ axes: number[];
111
+ /** Byte size for the data column */
112
+ column: number;
113
+ };
110
114
  };
111
115
 
112
- type ParquetPartitionInfoData<Blob> = {
116
+ export type ParquetChunk<Blob> = {
113
117
  /** Parquet file (PTable) containing column data */
114
118
  data: Blob;
115
119
 
116
- /** Content hash calculated for the specific axes and data this partition represents */
120
+ /** Content hash calculated for the specific axes and data this chunk represents */
117
121
  dataDigest?: string;
118
122
 
119
- /** Pre-computed statistics for optimization without blob download */
120
- stats?: {
121
- /** Number of rows in the column */
122
- numberOfRows?: number;
123
- /** Byte size information for storage optimization and query planning */
124
- numberOfBytes?: {
125
- /** Byte sizes for each axis column in the same order as axes mapping */
126
- axes: number[];
127
- /** Byte size for the data column */
128
- column: number;
129
- };
130
- };
131
- };
123
+ /** Axes mappings - Parquet file is sorted by these fields in this order */
124
+ axes: ParquetChunkMappingAxis[];
132
125
 
133
- export type ParquetChunk<Blob> = {
134
- /** Mapping of column names to their data */
135
- mapping: ParquetPartitionInfoMapping;
126
+ /** Column mapping */
127
+ column: ParquetChunkMappingColumn;
136
128
 
137
- /** Data for this partition */
138
- data: ParquetPartitionInfoData<Blob>;
129
+ /** Pre-computed statistics for optimization without blob download */
130
+ stats?: ParquetChunkStats;
139
131
  };
140
132
 
141
133
  export type ParquetPartitionedDataInfo<Blob> = {