piflow_regex_text_process
PiFlow · TextAppend a text column with all matches of an RE2 regular expression replaced.
Use this operator
operator: piflow_regex_text_process@1.0Configure remote_operator_library_urls with this repository’s origin. XStream verifies and caches artifacts by digest, sharing them across operators.
Named ports
- sourceInputrecords
Arrow records. The example uses value.
Formats: Any compatible format - resultOutputrecords
Records stream. Append a text column with all matches of an RE2 regular expression replaced.
Output structure and samples are provided by operator inference.
Parameters
- columnNamestringRequired
String column to transform. Output uses its name followed by _new.
- How to fill
- String column to transform. Output uses its name followed by _new.
- Example value
- value
- regexstringRequired
A RE2 pattern. Matching is case-sensitive.
- How to fill
- A RE2 pattern. Matching is case-sensitive. · Maximum length: 1024
- Example value
- ^site-
- replaceStrstringRequired
Replacement string. Use a backslash followed by the group number to expand a capture.
- How to fill
- Replacement string. Use a backslash followed by the group number to expand a capture. · Maximum length: 2048
- Example value
- station-
Operator usage example
Connect the input ports to upstream steps and adjust the parameters for your data.
id: process
operator: piflow_regex_text_process@1.0
inputs:
source: read_source
params:
columnName: value
regex: ^site-
replaceStr: station-
Manual download
curl -fLo 'operator.zip' 'https://repo.conox.cn/v1/blobs/sha256/259d04239faf0dad430853c3a70be51d596d72556e8344435114db51aed9443a/operator.zip'
sha256sum -- 'operator.zip'
curl -fLo 'LICENSE.txt' 'https://repo.conox.cn/v1/blobs/sha256/c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4/LICENSE.txt'
sha256sum -- 'LICENSE.txt'Compare checksums with the manifest. Download execution and build environments from the runtime catalog ↗.
Source and licensing
See Source archive under Artifact details
- Source repository
- https://github.com/cas-bigdatalab/piflow
- Source revision
- 777361c4e72b2c5457479683916b7c8e635289ff
- License (publisher declared)
- Apache-2.0
- License text
- Available below
- Dependency SBOM
- Dependency SBOM not provided
Build instructions
Build the Python SDK adapter in src/ with python-arrow@2.0. See job.yaml for an example using the supplied fixtures.
Publisher-provided source, licenses and dependency information support your review. Availability and checksums do not certify safety, legal clearance, or that the executable matches the source.