@platforma-sdk/workflow-tengo 5.6.6 → 5.7.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/pt.expression.lib.tengo +1 -0
- package/dist/tengo/lib/pt.lib.tengo +59 -0
- 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.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.parse-to-json.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/package.json +4 -4
|
@@ -1849,6 +1849,7 @@ export ll.toStrict({
|
|
|
1849
1849
|
sc: sc,
|
|
1850
1850
|
_newExpression: _newExpression,
|
|
1851
1851
|
_isExpression: _isExpression,
|
|
1852
|
+
_isSelector: _isSelector,
|
|
1852
1853
|
_isAggregation: _isAggregation,
|
|
1853
1854
|
_mapToExpressionStructList: _mapToExpressionStructList,
|
|
1854
1855
|
_mapToSingleExpressionStruct: _mapToSingleExpressionStruct
|
|
@@ -1179,6 +1179,65 @@ _newDataFrame = func(parentWorkflow, dfName) {
|
|
|
1179
1179
|
|
|
1180
1180
|
|
|
1181
1181
|
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
unique: func(...options) {
|
|
1191
|
+
opts := {}
|
|
1192
|
+
if len(options) > 0 {
|
|
1193
|
+
opts = options[0]
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
if !is_undefined(opts.keep) {
|
|
1197
|
+
validKeep := opts.keep == "any" || opts.keep == "none" || opts.keep == "first" || opts.keep == "last"
|
|
1198
|
+
if !validKeep {
|
|
1199
|
+
ll.panic("keep must be 'any', 'none', 'first', or 'last'. Got: %v", opts.keep)
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
outputDfName := parentWorkflow._newAnonymousDataFrameId()
|
|
1204
|
+
parentWorkflow._addStep(func(ctx) {
|
|
1205
|
+
step := {
|
|
1206
|
+
type: "unique",
|
|
1207
|
+
inputTable: dfName,
|
|
1208
|
+
outputTable: outputDfName
|
|
1209
|
+
}
|
|
1210
|
+
if !is_undefined(opts.subset) {
|
|
1211
|
+
if exp._isSelector(opts.subset) {
|
|
1212
|
+
step.subset = opts.subset._getExpression(ctx)
|
|
1213
|
+
} else {
|
|
1214
|
+
step.subset = opts.subset
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
if !is_undefined(opts.keep) {
|
|
1218
|
+
step.keep = opts.keep
|
|
1219
|
+
}
|
|
1220
|
+
if !is_undefined(opts.maintainOrder) {
|
|
1221
|
+
step.maintainOrder = opts.maintainOrder
|
|
1222
|
+
}
|
|
1223
|
+
return step
|
|
1224
|
+
})
|
|
1225
|
+
return _newDataFrame(parentWorkflow, outputDfName)
|
|
1226
|
+
},
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1182
1241
|
addColumns: func(...expressions) {
|
|
1183
1242
|
parentWorkflow._addStep(func(ctx) {
|
|
1184
1243
|
stepCols := _mapExprsToStepCols(expressions, "addColumns", ctx)
|
|
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": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@milaboratories/software-pframes-conv": "2.2.9",
|
|
20
20
|
"@platforma-open/milaboratories.software-small-binaries": "^1.15.25",
|
|
21
|
-
"@platforma-open/milaboratories.software-
|
|
22
|
-
"@platforma-open/milaboratories.software-
|
|
21
|
+
"@platforma-open/milaboratories.software-ptexter": "1.2.0",
|
|
22
|
+
"@platforma-open/milaboratories.software-ptabler": "1.14.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@platforma-sdk/tengo-builder": "2.4.
|
|
25
|
+
"@platforma-sdk/tengo-builder": "2.4.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"type-check": "pl-tengo check",
|