{"api_version":2,"name":"piflow_complement_by_memcache","version":"1.0","role":"transform","type":"sdk","description":"Replace selected columns on a lookup key hit. Rows without a matching key keep their original values.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"lookup":{"representations":["records"],"formats":[]},"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"keyFile":{"type":"string","description":"Key column shared by the source and lookup streams."},"replaceField":{"type":"string","description":"Comma-separated columns to copy from the lookup stream."}},"required":["keyFile","replaceField"],"additionalProperties":false},"documentation":{"inputs":{"lookup":"Arrow records. The example uses code, label.","source":"Arrow records. The example uses code, label."},"outputs":{"result":"Records stream. Replace selected columns on a lookup key hit. Rows without a matching key keep their original values."},"parameters":{"keyFile":{"description":"Key column shared by the source and lookup streams.","help":"Key column shared by the source and lookup streams.","example":"code"},"replaceField":{"description":"Comma-separated columns to copy from the lookup stream.","help":"Comma-separated columns to copy from the lookup stream.","example":"label"}},"example_job":"name: Enrich records from a lookup stream\nsteps:\n- id: read_lookup\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/lookup.jsonl\n    view: records\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_complement_by_memcache@1.0\n  inputs:\n    lookup: read_lookup\n    source: read_source\n  params:\n    keyFile: code\n    replaceField: label\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_complement_by_memcache","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"6f254537683a4af28c2b89ca5f5ad51fb71153dd","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":"3c9b891c73c9257a005a10b2ad47d9195d292f968fdbad50ac4fd81a331b69c0","size":17671,"filename":"piflow_complement_by_memcache-sources.zip"},"license_file":{"sha256":"2a45ff20671144c1709be48b36f5e55d97145c767dae1cf91965cbd2cf625768","size":1317,"filename":"LICENSE.txt"}},"artifact":{"sha256":"b45cc2e3fa3ad4aff55b198b94efd23306a671eb962ff15e0a357780bf70dbeb","size":36607,"filename":"operator.zip"},"categories":["PiFlow","Data processing"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795081225084},"publication":{"author":"dacp-examples","submitted_at_ms":1795081221022,"approved_at_ms":1795081225084,"last_submitted_at_ms":1795081221022,"last_approved_at_ms":1795081225084},"download_count":4}