{"api_version":2,"name":"piflow_regex_text_process","version":"1.0","role":"transform","type":"sdk","description":"Append a text column with all matches of an RE2 regular expression replaced.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"columnName":{"type":"string","description":"String column to transform. Output uses its name followed by _new."},"regex":{"type":"string","description":"A RE2 pattern. Matching is case-sensitive.","maxLength":1024},"replaceStr":{"type":"string","description":"Replacement string. Use a backslash followed by the group number to expand a capture.","maxLength":2048}},"required":["columnName","regex","replaceStr"],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records. The example uses value."},"outputs":{"result":"Records stream. Append a text column with all matches of an RE2 regular expression replaced."},"parameters":{"columnName":{"description":"String column to transform. Output uses its name followed by _new.","help":"String column to transform. Output uses its name followed by _new.","example":"value"},"regex":{"description":"A RE2 pattern. Matching is case-sensitive.","help":"A RE2 pattern. Matching is case-sensitive.","example":"^site-"},"replaceStr":{"description":"Replacement string. Use a backslash followed by the group number to expand a capture.","help":"Replacement string. Use a backslash followed by the group number to expand a capture.","example":"station-"}},"example_job":"name: Replace regular-expression matches\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_regex_text_process@1.0\n  inputs:\n    source: read_source\n  params:\n    columnName: value\n    regex: ^site-\n    replaceStr: station-\n- id: receive_result\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_regex_text_process","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"777361c4e72b2c5457479683916b7c8e635289ff","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":"921d16610b825457eb6531fff08e3905a762ef6d536987919facb1cef5f04fc5","size":17534,"filename":"piflow_regex_text_process-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"259d04239faf0dad430853c3a70be51d596d72556e8344435114db51aed9443a","size":30983,"filename":"operator.zip"},"categories":["PiFlow","Text"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795080184566},"publication":{"author":"dacp-examples","submitted_at_ms":1795080164297,"approved_at_ms":1795080184566,"last_submitted_at_ms":1795080164297,"last_approved_at_ms":1795080184566},"download_count":4}