Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
EXTRACT PIPELINE … INTO OUTFILE
On this page
This command takes a sample of the data streaming into your pipeline and copies it into a file on disk.
Syntax
EXTRACT PIPELINE pipe_line[FROM 'source_partition'[OFFSETS start_offset TO end_offset]]INTO OUTFILE 'file_name'
Remarks
-
pipe_is the configured pipeline.line -
file_the output file containing your sample data.name -
source_is a source partition ID.partition -
start_andoffset end_can be used to extract the exact range of sample data.offset -
This command causes implicit commits.
Refer to COMMIT for more information. -
Refer to the Permissions Matrix for the required permissions.
Note
You cannot run EXTRACT PIPELINE when the pipeline is in a Running or Error state.
Return Type
A file containing transform data that can be used during debugging operations.
cat sample_output | python transform.py
Examples
The following saves random sample data.
EXTRACT PIPELINE p INTO OUTFILE 'transform_output';
The following is useful if there is a specific partition or file with a known problem.
EXTRACT PIPELINE p FROM '6' INTO OUTFILE 'transform_output';
The following extracts an exact range of data, which is useful if the problematic data is in a specifically known kafka region.
EXTRACT PIPELINE p FROM '10' OFFSETS 0 TO 6 INTO OUTFILE 'transform_output';
Last modified: