Structured File Producer V2
This operator reads from any structured operators and produces a file (CSV, ORC, or PARQUET) in the specified storage. This operator is supported in Generation 1 graphs.
-
Microsoft Azure Data Lake Storage V2 (ADL_V2)
-
Google Cloud Storage (GCS)
-
Hadoop Distributed File System (HDFS)
-
SAP HANA Data Lake Files (HDL_FILES)
-
Alibaba Cloud Object Storage Service (OSS)
-
Amazon Simple Storage Service (S3)
-
Semantic Data Lake (SDL)
-
Microsoft Azure Storage Blob (WASB)
Configuration Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
Service |
string |
The storage in which the file is written. |
|
Connection ID |
object |
Connection ID of the target system. |
|
Target |
object |
Remote dataset of the target object. |
|
Mode |
string |
Defines the write mode for CSV files. Options are Overwrite and Append. Overwrite replaces the existing content, while Append adds data to an existing file. In both cases, if the file does not exist yet, it is created during the writing process. Important: GCS, S3, and WASB do not allow append. |
|
Format |
string |
The supported cloud storage output file formats include CSV, PARQUET, and ORC. The CSV file conforms to the RFC-4180 specification, where the row delimiter is always CRLF and the escape character is always double-quotes. |
|
CSV Properties |
object |
Properties of the CSV output.
|
|
Additional Properties |
object |
Additional properties related to the upload options to cloud storage. It is only applicable when a cloud storage service is selected.
|
|
Maximum Batch Size |
integer |
The maximum number of records from the source included in each batch. The actual number of records is automatically calculated based on the dataset definition. To disable the automatic calculation, set the Use Defined Batch Size option to True. |
|
Use Defined Batch Size |
boolean |
Set to True when the automatic calculation doesn’t provide optimal performance. When set to True, each batch of records contains the number of records entered in the Maximum Batch Size option. For example, when Maximum Batch Size is set to 1000, and Use Defined Batch Size is set to True, then there are 1000 records in each batch. When set to False, then each batch is between 10 and 1000 rows. |
|
Write part files |
boolean |
Defines whether the writer produces a single file or a directory of files. |
|
Limit part file records |
boolean |
Defines whether to limit individual partition files with a maximum number of records. |
|
Max part file records |
integer |
Indicates the maximum number of records in each partition file. This guarantees that partition files will not exceed this number. |
|
Part file write mode |
string |
Defines the write mode for partition files. Options are Overwrite and Append. Overwrite deletes the existing directory if it was a partition file directory and re-create it. Append adds new files to an existing partition file directory. Important: If appending, the producer must match the existing format of the partition file directory, including the format and column layout. |
Placeholders
-
<sourceTableName>: When connected to a table consumer, this placeholder is replaced by the table name of the source. For SQL consumers, this placeholder is replaced by SQL_Table.
-
<counter>: An incremental integer for each file written, starting with 1.
-
<date>: The date at the moment of writing, in the format yyyyMMdd.
-
<time>: The time at the moment of the writing, in the format HHmmss.
-
<timestamp>: The timestamp at the moment of the writing, in the format yyyyMMdd_HHmmss.
-
<partitionName>: The partition number if the consumer has partitions, for example, 0, 1, and so on. Important: If the consumer has partitions, and the number is not specified, the partition number is always appended to the file name to avoid concurrency issues during writing.
Remote File Name Conventions
Each cloud provider has its own naming convention for defining bucket and object names. Follow these conventions to avoid any source-related issue.
Even though operators accept most special characters, we recommend that only alphanumeric characters are used. Using alphanumeric characters avoids any undesired issues because all sources work well with such characters. Furthermore, some special characters such as ", +, and, are not allowed by the Flowagent File Producer.
Input
|
Input |
Type |
Description |
|---|---|---|
|
inTable |
table |
Table type port, which comes as output from other structured operators. |
Output
|
Output |
Type |
Description |
|---|---|---|
|
outMessage |
message |
Outputs a message object with the following definition:
|