{"api_version":2,"name":"piflow_card_code_clean","version":"1.0","role":"transform","type":"sdk","description":"Normalize the configured identity column for document type 1. Preserve all other document numbers.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"cardCodeField":{"type":"string","description":"Existing string column containing the document code."},"cardTypeField":{"type":"string","description":"Column indicating document type. 1 selects a Chinese identity number."}},"required":["cardCodeField","cardTypeField"],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records. The example uses type, code."},"outputs":{"result":"Records stream. Normalize the configured identity column for document type 1. Preserve all other document numbers."},"parameters":{"cardCodeField":{"description":"Existing string column containing the document code.","help":"Existing string column containing the document code.","example":"code"},"cardTypeField":{"description":"Column indicating document type. 1 selects a Chinese identity number.","help":"Column indicating document type. 1 selects a Chinese identity number.","example":"type"}},"example_job":"name: Clean identity codes by document type\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_card_code_clean@1.0\n  inputs:\n    source: read_source\n  params:\n    cardCodeField: code\n    cardTypeField: type\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_card_code_clean","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"f9bb5542e253fddea75a338a8dd476270f86ce59","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":"4bd7202d0c196b803509656fa23e0b107027bcc06d00cb34074f030012c67043","size":21560,"filename":"piflow_card_code_clean-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"5d0030836c938abe0b3e2163aabba4f2746fdf295309acc1688199ae04d03846","size":30974,"filename":"operator.zip"},"categories":["PiFlow","Data cleaning"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795080162669},"publication":{"author":"dacp-examples","submitted_at_ms":1795080143952,"approved_at_ms":1795080162669,"last_submitted_at_ms":1795080143952,"last_approved_at_ms":1795080162669},"download_count":4}