{"api_version":2,"name":"piflow_field_type_conversion","version":"1.0","role":"transform","type":"sdk","description":"Cast selected fields to double precision, 32-bit integer or fixed-precision decimal. Preserve other columns.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"doubleTypeField":{"type":"string","description":"Comma-separated names to cast to double, or empty to skip."},"intTypeField":{"type":"string","description":"Comma-separated names to cast to a 32-bit integer, or empty to skip."},"decimalTypeField":{"type":"string","description":"Comma-separated names to cast to fixed-precision decimal, or empty to skip."},"decimalTypePrecision":{"type":"string","description":"Decimal precision and scale with precision from 1 to 38."}},"required":["doubleTypeField","intTypeField","decimalTypeField","decimalTypePrecision"],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records. The example uses measurement, count, price, station."},"outputs":{"result":"Records stream. Cast selected fields to double precision, 32-bit integer or fixed-precision decimal. Preserve other columns."},"parameters":{"doubleTypeField":{"description":"Comma-separated names to cast to double, or empty to skip.","help":"Comma-separated names to cast to double, or empty to skip.","example":"measurement"},"intTypeField":{"description":"Comma-separated names to cast to a 32-bit integer, or empty to skip.","help":"Comma-separated names to cast to a 32-bit integer, or empty to skip.","example":"count"},"decimalTypeField":{"description":"Comma-separated names to cast to fixed-precision decimal, or empty to skip.","help":"Comma-separated names to cast to fixed-precision decimal, or empty to skip.","example":"price"},"decimalTypePrecision":{"description":"Decimal precision and scale with precision from 1 to 38.","help":"Decimal precision and scale with precision from 1 to 38.","example":"DECIMAL(12, 2)"}},"example_job":"name: Convert numeric field types\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_field_type_conversion@1.0\n  inputs:\n    source: read_source\n  params:\n    doubleTypeField: measurement\n    intTypeField: count\n    decimalTypeField: price\n    decimalTypePrecision: DECIMAL(12, 2)\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_field_type_conversion","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":"2ed60244b5e0203525d5533d552ddf62697879cc1a84e11d3ca9da8109a683c4","size":20113,"filename":"piflow_field_type_conversion-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"e3ddd9928ecadc611b7d2724de882d9d57e39a5bdb815cb83c7e4c77c610be4f","size":36604,"filename":"operator.zip"},"categories":["PiFlow","Data conversion"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795081222216},"publication":{"author":"dacp-examples","submitted_at_ms":1795081215222,"approved_at_ms":1795081222216,"last_submitted_at_ms":1795081215222,"last_approved_at_ms":1795081222216},"download_count":3}