{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Google Bigquery Export Integration V2","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-bigquery-export-integration-v2","__idx":0},"children":["Google Bigquery Export Integration V2"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google BigQuery Connector V2は、Google BigQueryへの大量データアップロードプロセスを効率化するように設計されています。以下の主要機能を提供します："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Big Queryにアップロードされる大量データを処理するためのParquetファイルへの効率的なデータセットのパッケージング"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["BigQueryロードジョブを使用した最適化されたデータアップロード"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Truncate同期モードのサポートを追加した柔軟なデータ同期操作"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud Platformアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件と制限事項","__idx":2},"children":["要件と制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ARRAYのようなネストされたデータ型または繰り返しデータ型は、宛先列としてサポートされていません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サポートされる機能","__idx":3},"children":["サポートされる機能"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このコネクターは「append、replace、replace backup、truncate」モードをサポートしています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-cloud-platform認証情報の取得","__idx":4},"children":["Google Cloud Platform認証情報の取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能を使用するには、以下が必要です："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Project ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JSON Credential"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"json-credentialの取得","__idx":5},"children":["JSON Credentialの取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google BigQueryとの統合は、サーバー間API認証に基づいています。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Developer Consoleに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIs & auth > Credentialsを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Service accountを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191020-190647.052807b7e694bcb32df29765d915392f79ccb6edd0897f35ecb4c142ab6c1e20.b6ab3c42.png","alt":""},"children":[]}," ","4. GoogleがJSON形式のキータイプを推奨しており、これを選択します。キーはブラウザによって自動的にダウンロードされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191020-190703.7d05851cf5d88ecc94508d0db2fdf995434deb98a0c0f88e7aaa0eb9ff973520.b6ab3c42.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"project-idの取得","__idx":6},"children":["Project IDの取得"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Developer Consoleに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Homeを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Project IDを確認します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191020-190726.aa7391fe23cf6e91102e8f6fefdd0a3305df9765947bf94a8fbddd4b98b25853.b6ab3c42.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"bigqueryでのdatasetとtableの作成","__idx":7},"children":["BigQueryでのDatasetとTableの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BigQueryコンソールからDatasetとTableを作成します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールからの使用","__idx":8},"children":["Treasure コンソールからの使用"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Integrations Hub > Catalogに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Big Query V2を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/bigqueryv2_03.6c070e76095fb045b0f5233ff1810119eb520f4d71892a64ae70f4ea5f295c55.b6ab3c42.png","alt":""},"children":[]}," ","4. 次のようにすべての情報を入力します："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/bigqueryv2_04.b45541e7bb880fc95a1b47f15e46013c567fed9ccc70b68e78be5dca98430c2a.b6ab3c42.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"エクスポート用のクエリ結果の設定","__idx":9},"children":["エクスポート用のクエリ結果の設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールは、データをエクスポートする複数の方法をサポートしています。Data Workbenchからデータをエクスポートするには、次の手順に従います。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]},"を選択し、クエリを定義します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択して、データのエクスポートを設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存のSnapchat CAPI認証を選択するか、前述の手順で新しい認証を作成します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"コネクター設定パラメーター","__idx":10},"children":["コネクター設定パラメーター"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フィールド"},"children":["フィールド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Sync Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データが宛先テーブルにどのように書き込まれるかを決定します。利用可能なオプション：  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append Mode"]},": クエリ結果の新しいデータを既存のテーブルに追加し、既存のレコードを変更しません。  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace Mode"]},": 既存の宛先テーブルを完全に削除し、クエリ結果のスキーマとデータを使用して新しいテーブルを作成します。  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Truncate Mode"]},": 既存のテーブル構造を保持しながらすべてのデータを削除し、クエリ結果から新しいデータを挿入します。既存のテーブルスキーマが維持され、クエリ結果またはJSON Schema Fileからのスキーマ定義は無視されます。  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace_Backup"]},": バックアップ方法を通じて既存のデータを安全に保持しながら宛先テーブルを置き換えます。このモードを選択すると、バックアップ方法を選択するための追加フィールド「Table Backup Operation Type」が表示されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Table Backup Operation Type（Replace_Backupモードを選択した場合のみ表示）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["置き換え前に既存のテーブルをバックアップする方法を指定します。2つのオプションがあります：  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Existing Table Rename"]},": タイムスタンププレフィックス（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["backup_{timestamp}_"]},"）を付けて既存のテーブルの名前を変更することで、編集可能なバックアップを作成します。その後、クエリ結果のスキーマを使用して元の名前で新しいテーブルが作成され、クエリ結果からデータがロードされます。  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Existing Table Snapshot"]},": BigQueryのスナップショット機能を使用して、既存のテーブルの読み取り専用のポイントインタイムコピーを作成します。スナップショットの作成後、既存のテーブルが削除され、クエリ結果のスキーマとデータを使用して新しいテーブルが作成されます。この方法はストレージ効率が高いですが、バックアップは読み取り専用です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Google Cloud Project ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryデータセットが存在するGoogle CloudプロジェクトのユニークID。これはGoogle Developer Consoleページの上部で確認できます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dataset Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データを保存するBigQueryデータセットの名前。これはGoogle Cloudプロジェクト内のテーブルのコレクションです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Location"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryデータが保存される地理的な場所を指定します。データレジデンシー要件にとって重要です。データをUSまたはEUマルチリージョン以外に保存する必要がある場合は、場所を明示的に指定する必要があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Table Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データが書き込まれる、選択したデータセット内の特定のテーブルの名前。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Auto-create table?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チェックすると、宛先テーブルが存在しない場合にシステムが自動的に作成します。このオプションはTruncate同期モードでは無視されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add missing columns?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["有効にすると、宛先テーブルに存在しないソースデータの列が追加されます。無効にすると、これらの列は無視されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Json Schema File"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON形式を使用してデータの構造を定義し、列名、データ型、制約を指定します。各列定義には名前と型フィールドが必要です。例では、REQUIREDとしてマークされたINTEGER型の「id」フィールドと、STRING型の「comment」フィールドを持つスキーマを示しています。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip on invalid records?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["有効にすると、検証に失敗したレコードに遭遇してもジョブは処理を続行し、無効なレコードをスキップします。無効にすると、無効なレコードに遭遇した場合にジョブは完全に停止します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"クエリ結果データ仕様","__idx":11},"children":["クエリ結果データ仕様"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bigqueryテーブルスキーマの調整と検証","__idx":12},"children":["BigQueryテーブルスキーマの調整と検証"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクターは、複数のソースからのスキーマを調和させて最終的なテーブル構造またはスキーマを決定する、スキーマ調整または統合プロセスを実装します。このプロセスは、設定された同期モードとユーザー設定に基づいてスキーマ進化シナリオをサポートしながら、データの整合性を保証します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スキーマソースと優先順位階層","__idx":13},"children":["スキーマソースと優先順位階層"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクターは、階層順に3つの潜在的なスキーマソースを評価することで、最終的なテーブルスキーマを決定します。この階層は、データスキーマが宛先BigQueryテーブルでどのように具現化されるかを理解するために重要です。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["宛先テーブルスキーマ（最高優先順位）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["宛先テーブルが存在する場合、そのスキーマはデータロード操作の主要な権限として機能します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["適用される場合："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存のテーブルへのAPPEND操作中"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TRUNCATE操作中"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実例：数値型の処理"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ結果データ"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"user_id"},"children":["user_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"transaction_amount"},"children":["transaction_amount"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"transaction_date"},"children":["transaction_date"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1001"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["99.99"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-15"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1002"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["150.50"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-16"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["宛先テーブルスキーマ"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_id"]},": INT64"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_amount"]},": NUMERIC(38,9)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_date"]},": DATE"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["結果"]},": クエリ結果データがtransaction_amountに対してFLOAT64として提供される場合でも、宛先スキーマに従ってNUMERICに変換されます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザー定義のJSONスキーマ（第2優先順位）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JSON Schema File設定を通じて提供される場合、このスキーマはクエリ結果からの型推論を上書きし、明示的な列定義を提供します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["適用される場合："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブル作成中（新しいテーブル）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存のテーブルに新しい列を追加する場合"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["明示的な型キャストと列プロパティ定義の場合​"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実例：タイムスタンプと日付の変換"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ソースデータ"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"event_time"},"children":["event_time"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"registration_date"},"children":["registration_date"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-15 14:30:00"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-15 14:30:00+02:00"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-16 09:15:00"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2024-01-16 09:15:00+08:00"]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザー定義スキーマ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["event_time"]},": TIMESTAMP"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["registration_date"]},": DATE"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["効果"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["event_time"]},":"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ソースデータはTIMESTAMPとして解析されます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["マイクロ秒の精度を維持します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UTCで保存されます"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ結果スキーマ（最低優先順位）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ソースデータ構造から派生したスキーマ。他のスキーマが指定されていない場合のベースラインスキーマとして機能します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["適用される場合："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JSONスキーマ定義なしで新しいテーブルを作成する場合"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["明示的な型定義なしで新しい列を追加する場合"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オーバーライドが存在しない場合の型推論のソースとして"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実例：整数から文字列への変換"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ結果データ"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"product_id"},"children":["product_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"status_code"},"children":["status_code"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"SKU-001\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"SKU-002\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果スキーマ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_id"]},": STRING"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_code"]},": Int"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["可能な変換先"]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["status_code as STRING:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["INT64 → STRING（互換性のある変換）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果: \"200\", \"404\""]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["status_code as INT64:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["元の型を維持"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果: 200, 404"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スキーマ処理シナリオマトリックス","__idx":14},"children":["スキーマ処理シナリオマトリックス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は、同期モード、テーブルの状態、設定によってスキーマがどのように処理されるかを示す構造化された参照表です。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Sync Mode"},"children":["Sync Mode"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Destination Table"},"children":["Destination Table"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Add Missing Columns"},"children":["Add Missing Columns"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Column Type"},"children":["Column Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Schema Handling Logics"},"children":["Schema Handling Logics"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Append"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exists"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enabled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルの元の列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルスキーマを使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果データからの新しい列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果 + ユーザー定義スキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Disabled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルの元の列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルスキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果データからの新しい列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["これらの列を無視"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create New"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべての列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果 + ユーザー定義スキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replace/Replace_Backup"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exists"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべての列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果 + ユーザー定義スキーマを使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create New"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべての列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果 + ユーザー定義スキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Truncate"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exists"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enabled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルの元の列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルスキーマを使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果データからの新しい列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果 + ユーザー定義スキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Disabled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルの元の列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先テーブルスキーマを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果データからの新しい列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["これらの列を無視"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create New"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべての列"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エラー: テーブルが存在する必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ型マッピング","__idx":15},"children":["データ型マッピング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクターは、ソースデータ型とBigQueryネイティブ型の間の包括的な型システムマッピングを実装しており、3つのカテゴリーの変換があります："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["デフォルトマッピング（ロスレス変換）"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Query Result Type"},"children":["Query Result Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"BigQuery Type"},"children":["BigQuery Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"実装の詳細"},"children":["実装の詳細"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int32/int64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INT64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ネイティブBigQuery整数、64ビット符号付き"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IEEE 754倍精度浮動小数点"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BOOL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1ビットブール値"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["マイクロ秒の精度、UTCタイムゾーン"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["STRING"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["UTF-8エンコードされた文字シーケンス"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["互換性のあるマッピング（型強制）"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Query Result Type"},"children":["Query Result Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"BigQuery Type"},"children":["BigQuery Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"技術実装"},"children":["技術実装"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NUMERIC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["精度: 38桁、スケール: 9桁の小数点以下"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BIGNUMERIC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["精度: 76.76桁、スケール: 38桁の小数点以下"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["STRING"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完全な精度でtoString()を使用してフォーマット"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["STRING"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リテラル「true」/「false」表現"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["STRING"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タイムゾーン付きISO 8601形式"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["潜在的にロスのあるマッピング（検証が必要）"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Query Result Type"},"children":["Query Result Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"BigQuery Type"},"children":["BigQuery Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"データ損失の考慮事項"},"children":["データ損失の考慮事項"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時刻コンポーネントを切り捨て、タイムゾーン情報が失われる"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["'YYYY-MM-DD'と一致する必要があり、無効な形式はNULLになる"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INT64"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["小数点の切り捨て、精度が失われる可能性"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時間の粒度が失われ、タイムゾーンの正規化が行われる"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-query-export-ジョブをスケジュールする","__idx":16},"children":["(オプション) Query Export ジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled Jobs と Result Export を使用して、指定したターゲット宛先に出力結果を定期的に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2 つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行するよう要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、cron スケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「月の日」の仕様と「週の曜日」が矛盾します。前者の仕様は毎月 1 日の午前 0 時 (00:00) に実行することを要求し、後者の仕様は毎週月曜日の午前 0 時 (00:00) に実行することを要求するためです。後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"treasure-コンソール-を使用してジョブをスケジュールする","__idx":17},"children":["Treasure コンソール を使用してジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクエリを作成するか、既存のクエリを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の横にある None を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドロップダウンで、次のスケジュールオプションのいずれかを選択します:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ドロップダウン値"},"children":["ドロップダウン値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... の詳細"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムゾーンで 1 日 1 回午前 0 時 (00:00 am) に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎時 00 分に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールなし。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-の詳細","__idx":18},"children":["Custom cron... の詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron 値"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 時間に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 日 1 回午前 0 時に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされた実行時刻のないジョブを作成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の名前付きエントリを使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各フィールド間には単一のスペースが必要です。各フィールドの値は、次のもので構成できます:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"35%","data-label":"フィールド値"},"children":["フィールド値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"例"},"children":["例 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"例の説明"},"children":["例の説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各フィールドに対して上記で表示された制限内の単一の値。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フィールドに基づく制限がないことを示すワイルドカード"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]},"。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["範囲 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]}," ","フィールドの許可される値の範囲を示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日から 10 日までの午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カンマ区切りの値のリスト ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]}," ","フィールドの許可される値のリストを示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、11 日、21 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期性インジケータ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," ","フィールドの有効な値の範囲に基づいて、"," ","スケジュールが実行を許可される頻度を表現します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、00:30 から 2 時間ごとに実行するようにスケジュールを設定します。"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," は、毎月 5 日から 5 日ごとに午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," ","ワイルドカードを除く上記の"," ","いずれかのカンマ区切りリストもサポートされています"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 5 日、10 日、20 日、25 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":19},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリに名前を付けて保存して実行するか、単にクエリを実行します。クエリが正常に完了すると、クエリ結果は指定された宛先に自動的にエクスポートされます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定エラーにより継続的に失敗するスケジュールジョブは、複数回通知された後、システム側で無効化される場合があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":20},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプションcliを使用したエクスポート統合","__idx":21},"children":["（オプション）CLIを使用したエクスポート統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI（Toolbelt）を使用してBigQueryに結果をエクスポートすることもできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]},{"$$mdtype":"Tag","name":"em","attributes":{},"children":["コマンドの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*--result"]},"オプション"]},"を使用して、Snapchatサーバーへのエクスポート情報を指定する必要があります。"]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]},"*コマンドの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt-job-and-query-command-reference"},"children":["この記事"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションの形式はJSONで、一般的な構造は次のとおりです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APPENDモード："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"type: 'bigquery_v2'\njson_keyfile: |\n  {\n    \"type\": \"service_account\",\n    \"private_key_id\": \"xxx\",\n    \"private_key\": \"-----BEGIN PRIVATE KEY-----xxx-----END PRIVATE KEY-----\\n\",\n    \"client_email\": \"account@xxx.iam.gserviceaccount.com\",\n    \"client_id\": \"xxx\",\n    \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n    \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n    \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n    \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/account%40xxx.iam.gserviceaccount.com\"\n  }\nmode: APPEND\nproject: gcp project id\ndataset: bigquery dataset\ntable: bigquery table\nlocation: gcp location\nauto_create_table: true\nadd_missing_columns: true\nschema_file: |\n  [\n    {\"name\": \"c1\", \"type\": \"STRING\", \"mode\": \"NULLABLE\"},\n    {\"name\": \"c2\", \"type\": \"INTEGER\", \"mode\": \"REQUIRED\"}\n  ]\nskip_invalid_records: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["REPLACEモード："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"  type: 'bigquery_v2'\n  json_keyfile: |\n    {\n      \"type\": \"service_account\",\n      \"private_key_id\": \"xxx\",\n      \"private_key\": \"-----BEGIN PRIVATE KEY-----xxx-----END PRIVATE KEY-----\\n\",\n      \"client_email\": \"account@xxx.iam.gserviceaccount.com\",\n      \"client_id\": \"xxx\",\n      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n      \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/account%40xxx.iam.gserviceaccount.com\"\n    }\n  mode: REPLACE\n  project: gcp project id\n  dataset: bigquery dataset\n  table: bigquery table\n  location: gcp location\n  auto_create_table: true\n  add_missing_columns: true\n  schema_file: |\n    [\n      {\"name\": \"c1\", \"type\": \"STRING\", \"mode\": \"NULLABLE\"},\n      {\"name\": \"c2\", \"type\": \"INTEGER\", \"mode\": \"REQUIRED\"}\n    ]\n  skip_invalid_records: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["REPLACE_BACKUPモード："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"  type: 'bigquery_v2'\n  json_keyfile: |\n    {\n      \"type\": \"service_account\",\n      \"private_key_id\": \"xxx\",\n      \"private_key\": \"-----BEGIN PRIVATE KEY-----xxx-----END PRIVATE KEY-----\\n\",\n      \"client_email\": \"account@xxx.iam.gserviceaccount.com\",\n      \"client_id\": \"xxx\",\n      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n      \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/account%40xxx.iam.gserviceaccount.com\"\n    }\n  mode: REPLACE_BACKUP\n  backup_mode: TABLE_RENAME\n  project: gcp project id\n  dataset: bigquery dataset\n  table: bigquery table\n  location: gcp location\n  auto_create_table: true\n  add_missing_columns: true\n  schema_file: |\n    [\n      {\"name\": \"c1\", \"type\": \"STRING\", \"mode\": \"NULLABLE\"},\n      {\"name\": \"c2\", \"type\": \"INTEGER\", \"mode\": \"REQUIRED\"}\n    ]\n  skip_invalid_records: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TRUNCATEモード："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"  type: 'bigquery_v2'\n  json_keyfile: |\n    {\n      \"type\": \"service_account\",\n      \"private_key_id\": \"xxx\",\n      \"private_key\": \"-----BEGIN PRIVATE KEY-----xxx-----END PRIVATE KEY-----\\n\",\n      \"client_email\": \"account@xxx.iam.gserviceaccount.com\",\n      \"client_id\": \"xxx\",\n      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n      \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/account%40xxx.iam.gserviceaccount.com\"\n    }\n  mode: TRUNCATE\n  project: gcp project id\n  dataset: bigquery dataset\n  table: bigquery table\n  location: gcp location\n  auto_create_table: true\n  add_missing_columns: true\n  schema_file: |\n    [\n      {\"name\": \"c1\", \"type\": \"STRING\", \"mode\": \"NULLABLE\"},\n      {\"name\": \"c2\", \"type\": \"INTEGER\", \"mode\": \"REQUIRED\"}\n    ]\n  skip_invalid_records: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パラメーター","__idx":22},"children":["パラメーター"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default Value"},"children":["Default Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタータイプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bigquery_v2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["json_keyfile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GCP JSON keyfile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON形式"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポートモード"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされるモード：   - APPEND - REPLACE - REPLACE_BACKUP - TRUNCATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["APPEND"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["backup_mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryでのテーブルのバックアップ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされる値：   - TABLE_RENAME - TABLE_SNAPSHOT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TABLE_RENAME"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["modeがREAPLCE_BACKUPの場合はYes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["project"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GCPプロジェクトID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["​N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["dataset"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryデータセット"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryテーブル"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["location"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryデータの場所"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["auto_create_table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルが存在しない場合にBigQueryで自動作成を許可します。このオプションはTRUNCATEモードではサポートされません"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true/false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["add_missing_columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BigQueryテーブルに存在しない追加の列を許可します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true/false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["skip_invalid_records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["無効なレコードを処理するときにジョブを継続または停止するフラグ。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true/false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"使用例","__idx":23},"children":["使用例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APPENDモード"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td query --result '{\"type\": \"bigquery_v2\", \"td_authentication_id\": 123456, \"mode\": \"APPEND\", \"project\": \"gcp_project_id\", \"dataset\": \"bg_dataset\", \"table\": \"bg_table\", \"location\": \"US\", \"auto_create_table\": true, \"add_missing_columns\": true, \"schema_file\": \"[{\\\"name\\\": \\\"c1\\\", \\\"type\\\": \\\"INTEGER\\\"}, {\\\"name\\\": \\\"c2\\\", \\\"type\\\": \\\"STRING\\\"}]\", \"skip_invalid_records\":true}' -d sample_datasets \"select ........ from ........\" -T presto\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["REPLACEモード"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td query --result '{\"type\": \"bigquery_v2\", \"td_authentication_id\": 123456, \"mode\": \"REPLACE\", \"project\": \"gcp_project_id\", \"dataset\": \"bg_dataset\", \"table\": \"bg_table\", \"location\": \"US\", \"auto_create_table\": true, \"add_missing_columns\": true, \"schema_file\": \"[{\\\"name\\\": \\\"c1\\\", \\\"type\\\": \\\"INTEGER\\\"}, {\\\"name\\\": \\\"c2\\\", \\\"type\\\": \\\"STRING\\\"}]\", \"skip_invalid_records\":true}' -d sample_datasets \"select ........ from ........\" -T presto\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["REPLACE_BACKUPモード"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td query --result '{\"type\": \"bigquery_v2\", \"td_authentication_id\": 123456, \"mode\": \"REPLACE_BACKUP\", \"backup_mode\": \"TABLE_RENAME\", \"project\": \"gcp_project_id\", \"dataset\": \"bg_dataset\", \"table\": \"bg_table\", \"location\": \"US\", \"auto_create_table\": true, \"add_missing_columns\": true, \"schema_file\": \"[{\\\"name\\\": \\\"c1\\\", \\\"type\\\": \\\"INTEGER\\\"}, {\\\"name\\\": \\\"c2\\\", \\\"type\\\": \\\"STRING\\\"}]\", \"skip_invalid_records\":true}' -d sample_datasets \"select ........ from ........\" -T presto\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TRUNCATEモード"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td query --result '{\"type\": \"bigquery_v2\", \"td_authentication_id\": 123456, \"mode\": \"TRUNCATE\", \"project\": \"gcp_project_id\", \"dataset\": \"bg_dataset\", \"table\": \"bg_table\", \"location\": \"US\", \"auto_create_table\": true, \"add_missing_columns\": true, \"schema_file\": \"[{\\\"name\\\": \\\"c1\\\", \\\"type\\\": \\\"INTEGER\\\"}, {\\\"name\\\": \\\"c2\\\", \\\"type\\\": \\\"STRING\\\"}]\", \"skip_invalid_records\":true}' -d sample_datasets \"select ........ from ........\" -T presto\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連記事","__idx":24},"children":["関連記事"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"その他の設定","__idx":25},"children":["その他の設定"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Result Exportを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/job-management/scheduling-jobs-using-td-console"},"children":["スケジュール"]},"して、定期的にターゲット先にデータをアップロードできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべてのインポートおよびエクスポート統合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows"},"children":["Treasure ワークフロー"]},"に追加できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td"]},"データオペレーターは、クエリ結果を指定された統合にエクスポートできます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows/operators"},"children":["Reference for Treasure Data Operators"]},"を参照してください。"]}]}]},"headings":[{"value":"Google Bigquery Export Integration V2","id":"google-bigquery-export-integration-v2","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"要件と制限事項","id":"要件と制限事項","depth":2},{"value":"サポートされる機能","id":"サポートされる機能","depth":2},{"value":"Google Cloud Platform認証情報の取得","id":"google-cloud-platform認証情報の取得","depth":2},{"value":"JSON Credentialの取得","id":"json-credentialの取得","depth":3},{"value":"Project IDの取得","id":"project-idの取得","depth":3},{"value":"BigQueryでのDatasetとTableの作成","id":"bigqueryでのdatasetとtableの作成","depth":2},{"value":"Treasure コンソールからの使用","id":"treasure-コンソールからの使用","depth":2},{"value":"エクスポート用のクエリ結果の設定","id":"エクスポート用のクエリ結果の設定","depth":3},{"value":"コネクター設定パラメーター","id":"コネクター設定パラメーター","depth":3},{"value":"クエリ結果データ仕様","id":"クエリ結果データ仕様","depth":2},{"value":"BigQueryテーブルスキーマの調整と検証","id":"bigqueryテーブルスキーマの調整と検証","depth":3},{"value":"スキーマソースと優先順位階層","id":"スキーマソースと優先順位階層","depth":3},{"value":"スキーマ処理シナリオマトリックス","id":"スキーマ処理シナリオマトリックス","depth":4},{"value":"データ型マッピング","id":"データ型マッピング","depth":3},{"value":"(オプション) Query Export ジョブをスケジュールする","id":"オプション-query-export-ジョブをスケジュールする","depth":3},{"value":"Treasure コンソール を使用してジョブをスケジュールする","id":"treasure-コンソール-を使用してジョブをスケジュールする","depth":4},{"value":"Custom cron... の詳細","id":"custom-cron-の詳細","depth":4},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"（オプション）CLIを使用したエクスポート統合","id":"オプションcliを使用したエクスポート統合","depth":2},{"value":"パラメーター","id":"パラメーター","depth":3},{"value":"使用例","id":"使用例","depth":3},{"value":"関連記事","id":"関連記事","depth":2},{"value":"その他の設定","id":"その他の設定","depth":4}],"frontmatter":{"seo":{"title":"Google Bigquery Export Integration V2"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-bigquery-export-integration-v2","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}