@platforma-sdk/workflow-tengo 5.3.6 → 5.3.7
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.xsv-import-pt.lib.tengo +17 -3
- package/dist/tengo/lib/pt.expression.lib.tengo +8 -2
- 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.R.create-renv.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 +3 -3
|
@@ -34,11 +34,11 @@ applyPreProcessSteps := func(colExpr, preProcessSteps) {
|
|
|
34
34
|
|
|
35
35
|
applyNaRegex := func(colExpr, naRegex, colType) {
|
|
36
36
|
if is_undefined(naRegex) {
|
|
37
|
-
return colExpr
|
|
37
|
+
return colExpr.cast(colType)
|
|
38
38
|
}
|
|
39
39
|
return pt.when(colExpr.matchesEcmaRegex(naRegex)).
|
|
40
40
|
then(pt.lit(undefined).cast(colType)).
|
|
41
|
-
otherwise(colExpr)
|
|
41
|
+
otherwise(colExpr.cast(colType))
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
|
|
@@ -102,10 +102,24 @@ importFileParquet := func(xsvFile, xsvType, spec, ops) {
|
|
|
102
102
|
wf.cacheInputs(ops.inputCache)
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
schema := []
|
|
106
|
+
for ax in spec.axes {
|
|
107
|
+
schema = append(schema, {
|
|
108
|
+
column: ax.column,
|
|
109
|
+
type: "String"
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
for col in spec.columns {
|
|
113
|
+
schema = append(schema, {
|
|
114
|
+
column: col.column,
|
|
115
|
+
type: "String"
|
|
116
|
+
})
|
|
117
|
+
}
|
|
105
118
|
df := wf.frame(xsvFile, {
|
|
106
119
|
xsvType: xsvType,
|
|
107
120
|
ignoreErrors: spec.skipEmptyLines == true,
|
|
108
|
-
commentPrefix: spec.commentLinePrefix
|
|
121
|
+
commentPrefix: spec.commentLinePrefix,
|
|
122
|
+
schema: schema
|
|
109
123
|
})
|
|
110
124
|
|
|
111
125
|
allColumns := []
|
|
@@ -110,9 +110,11 @@ _newWindowExpression = func(expression, aggregation, currentAlias) {
|
|
|
110
110
|
_getExpression: func(ctx) {
|
|
111
111
|
ll.assert(is_map(ctx), "ctx must be a map")
|
|
112
112
|
ll.assert(!is_undefined(expression), "Using this operation as a window expression is not allowed. Use it as a group by expression instead. %v", aggregation)
|
|
113
|
-
ll.assert(!is_undefined(currentAlias), "Alias is not defined for this window expression.")
|
|
114
113
|
|
|
115
114
|
valueExpr := expression(ctx)
|
|
115
|
+
if is_undefined(currentAlias) {
|
|
116
|
+
return valueExpr
|
|
117
|
+
}
|
|
116
118
|
return {type: "alias", value: valueExpr, name: currentAlias}
|
|
117
119
|
},
|
|
118
120
|
|
|
@@ -979,7 +981,11 @@ _newExpression = func(expression) {
|
|
|
979
981
|
|
|
980
982
|
|
|
981
983
|
matchesEcmaRegex: func(ecmaRegex) {
|
|
982
|
-
ll.assert(is_string(ecmaRegex)
|
|
984
|
+
ll.assert(is_string(ecmaRegex), "ecma_regex must be a string.")
|
|
985
|
+
|
|
986
|
+
if len(ecmaRegex) == 0 {
|
|
987
|
+
return self.eq("")
|
|
988
|
+
}
|
|
983
989
|
|
|
984
990
|
return _newExpression(func(ctx) {
|
|
985
991
|
valueExpr := self._getExpression(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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@milaboratories/software-pframes-conv": "2.2.9",
|
|
20
20
|
"@platforma-open/milaboratories.software-small-binaries": "^1.15.23",
|
|
21
|
-
"@platforma-open/milaboratories.software-
|
|
22
|
-
"@platforma-open/milaboratories.software-
|
|
21
|
+
"@platforma-open/milaboratories.software-ptabler": "1.12.8",
|
|
22
|
+
"@platforma-open/milaboratories.software-ptexter": "1.1.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@platforma-sdk/tengo-builder": "2.3.2"
|