このプロシージャは、ソースとターゲットのメタデータを比較し、ソースとターゲットの列の交点に基づいて、データダウンロード用の列リストを生成します。また、対応するパラメータを使用して、結果セットの最初と最後に必須の列を追加することもできます。これらの列の値はsource_columnsでは返されず、消費プロシージャで明示的に指定する必要があります。

Parameters

Parameter

Description

source_dataset

Fully-qualified name of the source. Can be an existing table or a stored procedure returning data. Can also be an arbitrary table specification in the form of a string: $column1|dataType1,column2|dataType3,column3[|string] returning data; mandatory

target_table

Fully-qualified name of the target. Must be an existing table; mandatory

isSourceATable

TRUE or NULL if the source is a table, FALSE if it is a procedure

collapseEqualDatasets

Returns a simple * if the metadata of source and target fully matches

renamedColumns

Comma-separated list of columns pairs separated by vertical bars: NameInTarget1|NameInSource1, NameInTarget1|NameInSource1

ignoredColumnChanges

Comma-separated list of columns for which no warning should be raised (which are expected due to the intended logic or known changes)

excludedColumns

Columns to exclude from the source

columnListFirst

Columns to add in the beginning

columnListLast

Columns to add in the end

Attributes

Attribute

Type

target_columns

clob

source_columns

clob

ソースまたはターゲットにのみ存在する列は出力から除外されます。名前が同じでデータ型が異なる列は、 UTILS.tryCast を使用して自動的に変換されます。キャストに失敗した場合、NULL値が挿入されます。