Merge Files Target#
The mergeFiles target merges all files within a source directory to a single target file. This only makes sense if
the file format allows appending by simple bytewise concatenation. This is the case for textual files, like CSV and
TSV files.
Example:#
targets:
csv_merge:
kind: mergeFiles
source: "s3://my-bucket/my-spark-output/"
target: "file:///srv/exports/my-export.csv"
overwrite: true
Fields#
kind(mandatory) (string):mergeFilesdescription(optional) (type: string): Optional descriptive text of the build targetsource(mandatory) (string): Source directory containing all files to be concatenatedtarget(optional) (string): Name of single target fileoverwrite(optional) (boolean) (default: true):
Supported Execution Phases#
BUILDVERIFYTRUNCATEDESTROY
Read more about execution phases.