@platforma-sdk/workflow-tengo 6.15.0 → 6.16.0
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/dist/tengo/lib/pframes.table-builder.lib.tengo +65 -4
- package/dist/tengo/tpl/annotations.compute.plj.gz +0 -0
- package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
- package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.workdir_type_name_extractor.plj.gz +0 -0
- package/dist/tengo/tpl/exec.conda.create-env.plj.gz +0 -0
- package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
- package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.build-table.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-parquet-pcolumn-chunk.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.merge-resource-maps.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-batch-split.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-batch.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/pt.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pt.workflow-run.plj.gz +0 -0
- package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.query-context-filter.plj.gz +0 -0
- package/package.json +4 -4
|
@@ -46,6 +46,33 @@ VALID_FORMATS := {
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
VALID_COLUMN_JOINS := {
|
|
58
|
+
left: true,
|
|
59
|
+
full: true,
|
|
60
|
+
inner: true
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
columnJoinOpt := func(opts) {
|
|
65
|
+
if len(opts) == 0 || !ll.isMap(opts[0]) || is_undefined(opts[0].join) {
|
|
66
|
+
return undefined
|
|
67
|
+
}
|
|
68
|
+
join := opts[0].join
|
|
69
|
+
ll.assert(!is_undefined(VALID_COLUMN_JOINS[join]),
|
|
70
|
+
"join must be one of [left, full, inner], got '%v'", join)
|
|
71
|
+
return join
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
49
76
|
isUnresolved := func(value) {
|
|
50
77
|
stack := [value]
|
|
51
78
|
si := 0
|
|
@@ -142,6 +169,7 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
142
169
|
_primaries := []
|
|
143
170
|
_columns := []
|
|
144
171
|
_joinMode := "inner"
|
|
172
|
+
_columnJoin := "full"
|
|
145
173
|
_axisHeaders := []
|
|
146
174
|
_cpu := undefined
|
|
147
175
|
_mem := undefined
|
|
@@ -195,18 +223,23 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
195
223
|
|
|
196
224
|
|
|
197
225
|
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
198
229
|
addColumn: func(query, ...opts) {
|
|
199
230
|
header := undefined
|
|
200
231
|
if len(opts) > 0 && ll.isMap(opts[0]) {
|
|
201
232
|
header = opts[0].header
|
|
202
233
|
}
|
|
234
|
+
join := columnJoinOpt(opts)
|
|
203
235
|
if isUnresolved(query) || isEnrichmentRef(query) {
|
|
204
236
|
_hasUnresolved = true
|
|
205
237
|
}
|
|
206
238
|
_columns = append(_columns, {
|
|
207
239
|
query: query,
|
|
208
240
|
header: header,
|
|
209
|
-
mode: "single"
|
|
241
|
+
mode: "single",
|
|
242
|
+
join: join
|
|
210
243
|
})
|
|
211
244
|
return self
|
|
212
245
|
},
|
|
@@ -219,6 +252,9 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
219
252
|
|
|
220
253
|
|
|
221
254
|
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
222
258
|
addColumns: func(query, ...opts) {
|
|
223
259
|
headerPrefix := undefined
|
|
224
260
|
headerSuffix := undefined
|
|
@@ -226,6 +262,7 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
226
262
|
headerPrefix = opts[0].headerPrefix
|
|
227
263
|
headerSuffix = opts[0].headerSuffix
|
|
228
264
|
}
|
|
265
|
+
join := columnJoinOpt(opts)
|
|
229
266
|
|
|
230
267
|
|
|
231
268
|
|
|
@@ -254,7 +291,8 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
254
291
|
header: entryHeader,
|
|
255
292
|
headerPrefix: entryPrefix,
|
|
256
293
|
headerSuffix: entrySuffix,
|
|
257
|
-
mode: "multi"
|
|
294
|
+
mode: "multi",
|
|
295
|
+
join: join
|
|
258
296
|
})
|
|
259
297
|
}
|
|
260
298
|
return self
|
|
@@ -267,7 +305,8 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
267
305
|
query: query,
|
|
268
306
|
headerPrefix: headerPrefix,
|
|
269
307
|
headerSuffix: headerSuffix,
|
|
270
|
-
mode: "multi"
|
|
308
|
+
mode: "multi",
|
|
309
|
+
join: join
|
|
271
310
|
})
|
|
272
311
|
return self
|
|
273
312
|
},
|
|
@@ -291,6 +330,25 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
291
330
|
|
|
292
331
|
|
|
293
332
|
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
setColumnJoin: func(mode) {
|
|
340
|
+
ll.assert(!is_undefined(VALID_COLUMN_JOINS[mode]),
|
|
341
|
+
"mode must be one of [left, full, inner], got '%v'", mode)
|
|
342
|
+
_columnJoin = mode
|
|
343
|
+
return self
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
294
352
|
setAxisHeader: func(matcher, header) {
|
|
295
353
|
ll.assert(is_string(header), "header must be a string")
|
|
296
354
|
processedMatcher := undefined
|
|
@@ -469,7 +527,8 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
469
527
|
mode: c.mode,
|
|
470
528
|
header: c.header,
|
|
471
529
|
headerPrefix: c.headerPrefix,
|
|
472
|
-
headerSuffix: c.headerSuffix
|
|
530
|
+
headerSuffix: c.headerSuffix,
|
|
531
|
+
join: c.join
|
|
473
532
|
}
|
|
474
533
|
if isEnrichmentRef(c.query) {
|
|
475
534
|
resolvedHit := resolveColumn(c.query.hit)
|
|
@@ -560,12 +619,14 @@ tableBuilder := func(format, ...ctxArg) {
|
|
|
560
619
|
if !is_undefined(c.header) { entry.header = c.header }
|
|
561
620
|
if !is_undefined(c.headerPrefix) { entry.headerPrefix = c.headerPrefix }
|
|
562
621
|
if !is_undefined(c.headerSuffix) { entry.headerSuffix = c.headerSuffix }
|
|
622
|
+
if !is_undefined(c.join) { entry.join = c.join }
|
|
563
623
|
columnsMap[string(idx)] = entry
|
|
564
624
|
}
|
|
565
625
|
|
|
566
626
|
tplInputs := {
|
|
567
627
|
format: format,
|
|
568
628
|
joinMode: _joinMode,
|
|
629
|
+
columnJoin: _columnJoin,
|
|
569
630
|
axisHeaders: _axisHeaders,
|
|
570
631
|
primaryCount: len(primaryEntries),
|
|
571
632
|
columnCount: len(columnEntries),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.0",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"@milaboratories/pframes-rs-wasip2": "1.1.61",
|
|
20
20
|
"@milaboratories/software-pframes-conv": "2.2.9",
|
|
21
21
|
"@platforma-open/milaboratories.software-small-binaries": "^2.1.1",
|
|
22
|
-
"@platforma-open/milaboratories.software-
|
|
23
|
-
"@platforma-open/milaboratories.software-
|
|
22
|
+
"@platforma-open/milaboratories.software-ptexter": "1.2.6",
|
|
23
|
+
"@platforma-open/milaboratories.software-ptabler": "2.1.14"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@platforma-sdk/tengo-builder": "4.1.
|
|
26
|
+
"@platforma-sdk/tengo-builder": "4.1.11"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"types:check": "pl-tengo imports && pl-tengo check",
|