@platforma-sdk/workflow-tengo 4.6.0 → 4.6.1
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.lib.tengo +23 -3
- 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/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.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-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.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/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 +1 -1
|
@@ -141,6 +141,7 @@ workflow := func() {
|
|
|
141
141
|
finalFileName := undefined
|
|
142
142
|
finalXsvType := undefined
|
|
143
143
|
inferSchemaOpt := undefined
|
|
144
|
+
optionsSchema := undefined
|
|
144
145
|
|
|
145
146
|
isStructuralInput := is_map(frameInput) && !is_undefined(frameInput.file)
|
|
146
147
|
|
|
@@ -149,6 +150,9 @@ workflow := func() {
|
|
|
149
150
|
inputXsvType = frameInput.xsvType
|
|
150
151
|
|
|
151
152
|
if !is_undefined(frameInput.schema) {
|
|
153
|
+
if !is_array(frameInput.schema) {
|
|
154
|
+
ll.panic("frameInput.schema (for structural input) must be an array if provided. Got: %T", frameInput.schema)
|
|
155
|
+
}
|
|
152
156
|
inputSchema = frameInput.schema
|
|
153
157
|
}
|
|
154
158
|
|
|
@@ -190,6 +194,14 @@ workflow := func() {
|
|
|
190
194
|
inferSchemaOpt = opts.inferSchema
|
|
191
195
|
}
|
|
192
196
|
|
|
197
|
+
|
|
198
|
+
if !is_undefined(opts.schema) {
|
|
199
|
+
if !is_array(opts.schema) {
|
|
200
|
+
ll.panic("'schema' option (from options map) must be an array. Got: %T", opts.schema)
|
|
201
|
+
}
|
|
202
|
+
optionsSchema = opts.schema
|
|
203
|
+
}
|
|
204
|
+
|
|
193
205
|
if !is_undefined(fileRef) && !smart.isReference(fileRef) {
|
|
194
206
|
ll.panic("frameInput.file (for structural input) or frameInput (for direct reference) must be a valid resource reference. Got: %v", fileRef)
|
|
195
207
|
} else if !is_undefined(fileContent) && !is_string(fileContent) {
|
|
@@ -214,14 +226,22 @@ workflow := func() {
|
|
|
214
226
|
readCsvStep.delimiter = "\t"
|
|
215
227
|
}
|
|
216
228
|
|
|
217
|
-
|
|
218
|
-
|
|
229
|
+
|
|
230
|
+
finalSchemaToUse := undefined
|
|
231
|
+
if !is_undefined(optionsSchema) {
|
|
232
|
+
finalSchemaToUse = optionsSchema
|
|
233
|
+
} else {
|
|
234
|
+
finalSchemaToUse = inputSchema
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if !is_undefined(finalSchemaToUse) {
|
|
238
|
+
readCsvStep.schema = finalSchemaToUse
|
|
219
239
|
}
|
|
220
240
|
|
|
221
241
|
|
|
222
242
|
|
|
223
243
|
if !is_undefined(inferSchemaOpt) && inferSchemaOpt == false {
|
|
224
|
-
readCsvStep.
|
|
244
|
+
readCsvStep.inferSchema = false
|
|
225
245
|
}
|
|
226
246
|
|
|
227
247
|
self.addRawStep(readCsvStep)
|
|
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
|