{"api_version":2,"name":"piflow_data_sort","version":"1.0","role":"transform","type":"sdk","description":"Globally sort a bounded input on one or more fields. Ascending order places nulls first, and descending places them last.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"sortField":{"type":"string","description":"Comma-separated column names in sort precedence order."},"sortOrder":{"type":"string","description":"Direction shared by all sort columns.","enum":["asc","desc"]}},"required":["sortField","sortOrder"],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records. The example uses sensor, value."},"outputs":{"result":"Records stream. Globally sort a bounded input on one or more fields. Ascending order places nulls first, and descending places them last."},"parameters":{"sortField":{"description":"Comma-separated column names in sort precedence order.","help":"Comma-separated column names in sort precedence order.","example":"sensor,value"},"sortOrder":{"description":"Direction shared by all sort columns.","help":"Direction shared by all sort columns.","example":"asc"}},"example_job":"name: Sort records\nsteps:\n- id: read_source\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/source.jsonl\n    view: records\n- id: process\n  operator: piflow_data_sort@1.0\n  inputs:\n    source: read_source\n  params:\n    sortField: sensor,value\n    sortOrder: asc\n- id: receive\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"runtime":{"image":"sha256:40db7fee594f1452790d1cc99c2e5429e187eb64633c716b8c6f903c47576975","archive":{"sha256":"e1844833e35390f2eaf9fc9ec7b67057ad0305ad713c0da6c8b055980a66946c","size":73825792,"filename":"python-arrow-2.0-runtime.tar"}},"execution":{"executor":"python","entrypoint":"xstream_piflow_data_sort","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"db177aa6d9b84d91078caa9a591574b1fe3cf20c","build_instructions":"Build the Python SDK adapter in src/ with python-arrow@2.0. See job.yaml for an example using the supplied fixtures.","source_archive":{"sha256":"6dcdeb3243d971f011a633f6deeefc5a42006a6921f98b247c4383169b8b5dcf","size":19499,"filename":"piflow_data_sort-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"291d7277e9bd5ebd0eb08a889572a6d8125fec0fe0108598fbf229874d3e706b","size":36564,"filename":"operator.zip"},"categories":["PiFlow","Data processing"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795081221839},"publication":{"author":"dacp-examples","submitted_at_ms":1795081215273,"approved_at_ms":1795081221839,"last_submitted_at_ms":1795081215273,"last_approved_at_ms":1795081221839},"download_count":4}