メインコンテンツまでスキップ

宛先テーブルに名前を付ける

適用対象 :はいにチェックマークが付けられました UIベースのパイプラインオーサリングはいにチェックマークが付けられましたAPIベースのパイプラインオーサリングはいにチェックマークが付けられましたSaaSコネクタはいにチェックマークが付けられましたデータベースコネクタ

当然、 LakeFlow Connect管理された取り込み中に作成された宛先テーブルには、対応するソース テーブルの名前が付けられます。 ただし、オプションで宛先テーブルに別の名前を指定することもできます。たとえば、同じスキーマ内の 2 つのテーブルにオブジェクトを取り込む場合は、それらのテーブルを区別するために、一方のテーブルに一意の名前を指定する必要があります。マネージド インジェスト コネクタでは、同じスキーマ内の重複する宛先テーブル名はサポートされません。

UIで宛先テーブルに名前を付ける

Databricks UI で管理されたインジェスト パイプラインを作成または編集するときに、宛先テーブルに名前を付けることができます。

データ取り込みウィザードの ソース ページで、 宛先テーブル の名前を入力します。

Databricks UI でのオプションの宛先テーブル名設定

APIを使用して宛先テーブルに名前を付ける

Databricks アセット バンドル、ノートブック、または Databricks CLI を使用して、管理されたインジェスト パイプラインを作成または編集するときに、宛先テーブルに名前を付けることができます。これを行うには、 destination_table問題を設定します。 例えば:

例: Google アナリティクス

YAML
resources:
pipelines:
pipeline_ga4:
name: <pipeline-name>
catalog: <target-catalog> # Location of the pipeline event log
schema: <target-schema> # Location of the pipeline event log
ingestion_definition:
connection_name: <connection>
objects:
- table:
source_url: <project-id>
source_schema: <property-name>
destination_catalog: <target-catalog>
destination_schema: <target-schema>
destination_table: <custom-target-table-name> # Specify destination table name

例: Salesforce

YAML
resources:
pipelines:
pipeline_sfdc:
name: <pipeline-name>
catalog: <target-catalog> # Location of the pipeline event log
schema: <target-schema> # Location of the pipeline event log
ingestion_definition:
connection_name: <connection>
objects:
- table:
source_schema: <source-schema>
source_table: <source-table>
destination_catalog: <target-catalog>
destination_schema: <target-schema>
destination_table: <custom-target-table-name> # Specify destination table name

例: 勤務日

YAML
resources:
pipelines:
pipeline_workday:
name: <pipeline>
catalog: <target-catalog> # Location of the pipeline event log
schema: <target-schema> # Location of the pipeline event log
ingestion_definition:
connection_name: <connection>
objects:
- report:
source_url: <report-url>
destination_catalog: <target-catalog>
destination_schema: <target-schema>
destination_table: <custom-target-table-name> # Specify destination table name