ワークフローでエクスポートするデータを指定するときに、パラメータを含めることができます。
TDの公開GitHubリポジトリで、インテグレーションのさまざまな設定例を確認できます。FTPを使用した結果出力の詳細なワークフロー例は、GitHubリポジトリにあります。
ワークフローで使用するパラメータは、結果エクスポートタイプによって決まります。
timezone: UTC
_export:
td:
database: sample_datasets
+td-result-into-target:
td>: queries/sample.sql
result_connection: your_connections_name
result_settings:
parameter1: value1
parameter2: value2
....Treasure Workflowでは、FTPを介した結果出力の指定は以下のようになります:
timezone: UTC
_export:
td:
database: sample_datasets
+td-result-via-ftp:
td>: queries/sample.sql
result_connection: ftp-out
result_settings:
path_prefix: /path/to/file
sequence_format: ""
file_ext: csv
compression: None
header_line: None
delimiter: ","
null_string: ""
newline: CRLFFTPを介した結果出力に適用できるパラメータは以下のとおりです:
| パラメータ | 説明 |
|---|---|
| path_prefix | 出力パスのプレフィックス(string、必須) |
| file_ext | デフォルト: csv(string、(csvまたはtsv)) |
| sequence_format | 出力ファイルのシーケンス部分のフォーマット(string、デフォルト: ".%03d.%02d") |
| compression | デフォルト None(string(None|gz|bzip2)) |
| header_line | デフォルト true(boolean(true|false)) |
| null_string | デフォルト ""(string(""|"\N"|NULL|null)) |
| delimiter | デフォルト ","(string(","|"\t"|"tab"|"|")) |
| newline | デフォルト CRLF(string(CRLF|CR|LF)) |