@platforma-sdk/workflow-tengo 5.4.1 → 5.4.2

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.
Files changed (42) hide show
  1. package/dist/tengo/lib/pt.lib.tengo +29 -39
  2. package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
  3. package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
  4. package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
  5. package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
  6. package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
  7. package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
  8. package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
  9. package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
  10. package/dist/tengo/tpl/check_network.workdir_type_name_extractor.plj.gz +0 -0
  11. package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
  12. package/dist/tengo/tpl/exec.conda.create-env.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  16. package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
  17. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  18. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  19. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  20. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  21. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  22. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  23. package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
  24. package/dist/tengo/tpl/pframes.export-parquet-pcolumn-chunk.plj.gz +0 -0
  25. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  28. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  29. package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
  30. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  31. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  32. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  33. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  34. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  35. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  36. package/dist/tengo/tpl/pt.import-dir.plj.gz +0 -0
  37. package/dist/tengo/tpl/pt.workflow-run.plj.gz +0 -0
  38. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  39. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  40. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  41. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  42. package/package.json +3 -3
@@ -320,7 +320,6 @@ workflow := func() {
320
320
  anonymousDFCounter := 0
321
321
  pcolumnCounter := 0
322
322
  pframeCounter := 0
323
- specDistillerSingleton := undefined
324
323
 
325
324
  cpu := undefined
326
325
  mem := undefined
@@ -710,42 +709,6 @@ workflow := func() {
710
709
  outFramesSpecs[name] = specs
711
710
  outFramesRename[name] = rename
712
711
  },
713
- _getSpecDistiller: func() {
714
- if is_undefined(specDistillerSingleton) {
715
- rawColumnSpecs := []
716
- for _, columns in inFrames {
717
- for columnId, columnInfo in columns {
718
- rawColumnSpecs = append(rawColumnSpecs, columnInfo.spec)
719
- }
720
- }
721
- specDistillerSingleton = pframesSpec.createSpecDistiller(rawColumnSpecs)
722
- }
723
- return specDistillerSingleton
724
- },
725
- _getDistilledAxesSpecs: func() {
726
- specDistiller := self._getSpecDistiller()
727
- canonicalMap := {}
728
- distilledAxesSpecs := {}
729
- for _, frame in inFrames {
730
- for _, columnInfo in frame.columns {
731
- for axis in columnInfo.spec.axesSpec {
732
- distilledAxis := specDistiller.distill(axis)
733
- if is_undefined(canonicalMap[distilledAxis.name]) {
734
- canonicalMap[distilledAxis.name] = {}
735
- }
736
- canonicalizedAxisSpec := canonical.encode(distilledAxis)
737
- if is_undefined(canonicalMap[distilledAxis.name][canonicalizedAxisSpec]) {
738
- canonicalMap[distilledAxis.name][canonicalizedAxisSpec] = true
739
- if is_undefined(distilledAxesSpecs[distilledAxis.name]) {
740
- distilledAxesSpecs[distilledAxis.name] = []
741
- }
742
- distilledAxesSpecs[distilledAxis.name] = append(distilledAxesSpecs[distilledAxis.name], distilledAxis)
743
- }
744
- }
745
- }
746
- }
747
- return distilledAxesSpecs
748
- },
749
712
 
750
713
 
751
714
 
@@ -832,8 +795,35 @@ workflow := func() {
832
795
  run: func() {
833
796
  workflowRunTpl := assets.importTemplate("@platforma-sdk/workflow-tengo:pt.workflow-run")
834
797
 
835
- specDistiller := self._getSpecDistiller()
836
- distilledAxesSpecs := self._getDistilledAxesSpecs()
798
+ rawColumnSpecs := []
799
+ for _, frame in inFrames {
800
+ for _, columnInfo in frame.columns {
801
+ rawColumnSpecs = append(rawColumnSpecs, columnInfo.spec)
802
+ }
803
+ }
804
+ specDistiller := pframesSpec.createSpecDistiller(rawColumnSpecs)
805
+
806
+ canonicalMap := {}
807
+ distilledAxesSpecs := {}
808
+ for _, frame in inFrames {
809
+ for _, columnInfo in frame.columns {
810
+ for axis in columnInfo.spec.axesSpec {
811
+ distilledAxis := specDistiller.distill(axis)
812
+ if is_undefined(canonicalMap[distilledAxis.name]) {
813
+ canonicalMap[distilledAxis.name] = {}
814
+ }
815
+ canonicalizedAxisSpec := canonical.encode(distilledAxis)
816
+ if is_undefined(canonicalMap[distilledAxis.name][canonicalizedAxisSpec]) {
817
+ canonicalMap[distilledAxis.name][canonicalizedAxisSpec] = true
818
+ if is_undefined(distilledAxesSpecs[distilledAxis.name]) {
819
+ distilledAxesSpecs[distilledAxis.name] = []
820
+ }
821
+ distilledAxesSpecs[distilledAxis.name] = append(distilledAxesSpecs[distilledAxis.name], distilledAxis)
822
+ }
823
+ }
824
+ }
825
+ }
826
+
837
827
  ctx := {
838
828
  specDistiller: specDistiller,
839
829
  distilledAxesSpecs: distilledAxesSpecs
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.4.1",
3
+ "version": "5.4.2",
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-ptabler": "1.12.10",
22
- "@platforma-open/milaboratories.software-ptexter": "1.1.1"
21
+ "@platforma-open/milaboratories.software-ptexter": "1.1.1",
22
+ "@platforma-open/milaboratories.software-ptabler": "1.12.10"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@platforma-sdk/tengo-builder": "2.3.2"