{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Snowflake Bulk Unloading インポート インテグレーション","description":"Snowflakeから大規模データセットを高速にTreasure AIへインポートする、Bulk Unloadingインテグレーションの設定方法を解説します。最大300%のパフォーマンス向上を実現する技術的な接続ガイドです。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"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":"snowflake-bulk-unloading-インポート-インテグレーション","__idx":0},"children":["Snowflake Bulk Unloading インポート インテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snowflake はクラウドベースのデータプラットフォームを提供し、ほぼ無制限のスケール、同時実行性、パフォーマンスでデータの価値を引き出すことができます。Treasure Data の Snowflake Bulk Unloading インテグレーションは、Snowflake の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/guides-overview-unloading-data"},"children":["Bulk Data Unloading"]}," 機能を活用して、Snowflake テーブルから Treasure Data へ大規模データセットをインポートするための高パフォーマンスソリューションを提供します。このインテグレーションは、大規模データセットに対して標準の Snowflake インポートインテグレーションと比較して最大 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["300% のパフォーマンス向上"]}," を実現します。また、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration"},"children":["Treasure Data の Snowflake インポート インテグレーション"]},"および",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-export-integration"},"children":["Snowflake エクスポート インテグレーション"]},"についても詳しく確認できます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This feature is in BETA version. For more information, contact your Customer Success Representative."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data の基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブル/ビューへのクエリおよびステージ管理の適切な権限を持つ Snowflake データウェアハウスの既存アカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["大規模データセットの場合、最適なパフォーマンスのために適切なリソース割り当て（特に CPU）を確保してください"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用して接続を作成する","__idx":2},"children":["Treasure コンソール を使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成","__idx":3},"children":["新しい接続を作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalog に移動して検索します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Snowflake Bulk Unload"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snowflake.9de61a1e773ed9029928a822ac86942f3852e822e77da3adc5a217c957908eb7.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい-snowflake-bulk-unload-connector-を作成","__idx":4},"children":["新しい Snowflake Bulk Unload Connector を作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/newauth.d6513201a167216ea22999e661dc2549bde18ef90b069847ac43f70dd233a892.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証方法を選択します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Basic"]},": Treasure Data が Snowflake に認証するための必要な認証情報を入力します: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]},": Snowflake ログインユーザー名"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]},": Snowflake ログインパスワード"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key Pair"]},": 暗号化された秘密鍵の場合は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Private Key"]}," とその ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Passphrase"]}," を入力します",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Private Key"]},": 生成された秘密鍵。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/key-pair-auth"},"children":["configuring-key-pair-authentication"]}," を参照してください"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Passphrase"]},": 秘密鍵のパスフレーズ。秘密鍵が暗号化されていない場合は空欄のままにします"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]},": Snowflake ログインユーザー名"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account"]},": Snowflake から提供されたアカウント名。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/admin-account-identifier"},"children":["Snowflake でアカウント名を見つける方法"]},"を参照してください"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OPTIONS"]},": JDBC 接続オプション（ある場合）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/auth.635f55c0b6096eb82d5dc551ed7d9d4dd119753acda0363863934e763506a3b5.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタの名前を指定します。認証を他のユーザーと共有するかどうかを指定します。共有すると、他のチームメンバーがあなたの認証を使用してコネクタソースを作成できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"snowflake-データを-treasure-data-に転送","__idx":5},"children":["Snowflake データを Treasure Data に転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentications ページで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]}," を作成します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/newsource.d8890eedac2a92827d452261986172ccb8a8f634de468fbfafac6d695ac2308f.70d1d129.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection"]}," に名前を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," をクリックします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source Table"]}," の詳細を入力します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sourcetable.17f84d9909b1e59d78d3ae4cb8e21a17d12387059ae31675f38492cd57613981.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"source-table","__idx":6},"children":["Source Table"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["取り込みたい情報を登録する必要があります。パラメータは以下の通りです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Role Name"]},": Snowflake で使用するデフォルトのアクセス制御ロールを指定します。デフォルトの ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/admin-user-management#user-roles"},"children":["Role"]}," を使用する場合は空欄のままにします"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Warehouse"]},": （必須）使用する仮想ウェアハウスを指定します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]},": （必須）Snowflake データベース"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schema"]},": （必須）接続時に指定されたデータベースのデフォルトスキーマを指定します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source Type"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table/View"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query"]}," を選択します"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query"]},":",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SELECT Query"]},": 実行するRAW SQLクエリ。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SELECT"]}," タイプのクエリのみ許可されます。INSERT、UPDATE、またはデータ変更クエリは使用できません"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table/View"]},"（デフォルト）:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SELECT Columns"]},": （必須）Table/View からすべての列を選択する場合はカンマ区切りの列名または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*"]}," を使用します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["From Table/View"]},": （必須）転送先テーブル名"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WHERE Condition"]},": 行をフィルタリングするための WHERE 条件を指定します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ORDER By Columns"]},": 行をソートするための ORDER BY の式"]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Loading"]},": パフォーマンス最適化を備えた増分ロードを有効にします"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Column(s)"]},": 増分ロードのための列名。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp"]}," および ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Numeric"]}," 列を指定できます。指定しない場合、Primary 列（存在する場合）が使用されます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ORDER BY Columns:"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Loading"]}," を選択した場合は使用できません"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Invalid Value Handling Mode:"]}," テーブルに無効なデータが含まれる行がある場合、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fail Job"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ignore Row"]}," のオプションがあります。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fail Job"]}," を選択すると、現在のジョブが停止し ERROR ステータスになります。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ignore Row"]}," を選択すると、無効な値を含む行を無視して処理を継続します。指定しない場合、デフォルトで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fail Job"]}," が選択されます"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["指定した ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Warehouse"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schema"]}," は事前に存在している必要があります。指定した ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Role"]}," は、指定したウェアハウス、データベース、スキーマ、テーブル/ビューへの権限を持っている必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"設定例","__idx":7},"children":["設定例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Warehouse: DEMO_WH\nDatabase: Test_DB\nSchema: PUBLIC\nSource Type: Query selected\nSELECT Query: SELECT column1, column2, column3\n              FROM table_test\n              WHERE column4 != 1\nIncremental Loading: Checked\nIncremental Column(s): column1\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"table-view","__idx":8},"children":["Table View"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Warehouse: DEMO_WH\nDatabase: Test_DB\nSchema: PUBLIC\nSource Type: Table/View selected\nSELECT Columns: column1, column2, column3\nFROM Table/View: table_test\nWHERE Condition: column4 != 1\nORDER By Columns:\nIncremental Loading: Checked\nIncremental Column(s): column1\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択すると、データの詳細設定が表示されます"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-settings","__idx":9},"children":["Data Settings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Settings では転送のカスタマイズができます。必要に応じて以下のセクションを編集してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/datasettings.7dfdca92e3f99f30f645b63a08d8200f72fbb09dea91dda3465112b649036c81.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"パフォーマンスオプション","__idx":10},"children":["パフォーマンスオプション"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Stage File Size"]},": 個々のステージファイルのサイズをバイト単位で制御します。デフォルトは 100 MB（104,857,600 バイト）です。ファイルサイズを大きくすると非常に大きなデータセットのパフォーマンスが向上する場合がありますが、より多くのメモリが必要になる場合があります（500 MB ファイルは 6GB のデータセットでテスト済みで良好な結果が得られています）"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"columns-settings","__idx":11},"children":["Columns Settings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["列は実際のデータセットから推測されます。列のデータタイプが実際のデータと一致しない場合は変更できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Column Name"]},": Snowflake の列名（変更しないでください）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Type"]},": 転送先のデータタイプを選択します（string、boolean、timestamp、double、long、json）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp Format"]},": 転送先タイプが string の場合のタイムスタンプ列のフォーマットパターン。例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["%Y-%m-%dT%H:%M:%S.%L%z"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"start-after値","__idx":12},"children":["START AFTER（値）"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start After (values)"]},": Incremental Loading が選択されている場合、この値を指定すると、この値より大きいデータのみがインポートされます。このフィールドのサイズと順序は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Columns"]}," と同じでなければなりません"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Network Timeout"]},": エラーを返す前に Snowflake サービスとのやり取りでレスポンスを待つ時間を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query Timeout"]},": エラーを返す前にクエリの完了を待つ時間を指定します。ゼロ（0）は無制限に待機することを示します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択すると、データの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/about-data-preview"},"children":["プレビュー"]},"が表示されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プレビュー","__idx":13},"children":["プレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プレビューは Snowflake の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/sql-reference/constructs/sample"},"children":["SAMPLE"]}," 機能を使用して、データセット全体を処理せずにサンプル行を効率的に表示します。これは特に大きなテーブルで有効です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Order By"]}," 列を使用しているがインデックスが付いていない大きなテーブルへのクエリなど、クエリの完了に時間がかかる場合、プレビューにダミーデータが表示される場合があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["複数の条件、テーブルの結合を含む複雑なクエリを使用する場合、プレビューに「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No records to preview"]},"」と表示されることがありますが、ジョブの実行結果には影響しません。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/about-data-preview"},"children":["プレビューの詳細"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/datapreview.5f170217c8ff6027af056517ee8cadc6977faaa2ef4e1f2cce7cae706422a1bc.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement---転送先データベースとテーブルを選択","__idx":14},"children":["Data Placement - 転送先データベースとテーブルを選択"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"ストレージ","__idx":15},"children":["ストレージ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートしたいデータベースとテーブルを既存のものから選択するか、新規作成します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method"]},": Append または Replace。既存のテーブルにレコードを",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["追加"]},"するか、既存のテーブルを",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["置き換える"]},"かを選択します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]},": パーティショニング時間として long または timestamp 列を選択します。デフォルトの時間列として、add_time フィルターを使用した upload_time が使用されます"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/dataplacement.b572b786a9a888637d7384bba188cb6ae53af531b643583a6a93c4c6288dea5f.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュール","__idx":16},"children":["スケジュール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["1回限りの転送を指定するか、自動繰り返し転送をスケジュールすることができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Once now"]},": 1回限りのジョブを設定します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Repeat…"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},": オプション: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、カスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]},": 実行時間の遅延を追加します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling TimeZone"]},": 'Asia/Tokyo' などの拡張タイムゾーン形式をサポートします"]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/schedule.0da876ce7e1db3c17434bca3b1b4f37ba34cdd0003cd73ed8a40779e0b9c1d08.70d1d129.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-を使用してコネクタを設定する","__idx":17},"children":["CLI を使用してコネクタを設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタを設定する前に、'td' コマンドをインストールしてください。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/installing-and-updating-td-toolbelt-and-treasure-agent"},"children":["Treasure Data Toolbelt"]}," をインストールしてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"seedyml-ファイルの準備","__idx":18},"children":["seed.yml ファイルの準備"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["in: セクションでは Snowflake からコネクタに入ってくるデータを指定し、out: セクションでは Treasure Data のデータベースにコネクタが出力するデータを指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snowflake アカウントのアクセス情報を以下のように入力します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: snowflake_unload\n  account_name: treasuredata\n  user: Test_user\n  password: xxxx\n  warehouse: DEMO_WH\n  db: TEST_DB\n  schema: PUBLIC\n  query: |\n    SELECT column1, column2, column3\n    FROM table_test\n    WHERE column4 != 1\n  invalid_value_option: ignore_row\nout:\n  mode: append\n","lang":"yaml"},"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":"設定キー"},"children":["設定キー"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"タイプ"},"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":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタのタイプ（\"snowflake_unload\" である必要があります）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["account_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アカウント名を指定します（Snowflake から提供されます）。Snowflake の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/admin-account-identifier"},"children":["アカウント名"]},"を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["warehouse"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用する仮想ウェアハウスを指定します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["db"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用する Snowflake のデフォルトデータベース"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["schema"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["接続後に指定されたデータベースに使用するデフォルトスキーマを指定します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["role"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドライバーによって開始された Snowflake セッションで使用するデフォルトのアクセス制御ロール"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["auth_method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["認証方法。現在サポート: basic、key_pair（デフォルト \"basic\"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["private_key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["auth_method"]}," が ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["key_pair"]}," の場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["passphrase"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["private_key のパスフレーズ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["user"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Snowflake ログイン名"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["password"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["auth_method"]}," が ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["basic"]}," の場合は必須。指定したユーザーのパスワード"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["実行する SQL クエリ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true の場合、ORDER BY の代わりに最大値比較を使用した増分ロードを有効にします"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental_columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["strings array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["増分ロードの列名。指定しない場合は Primary キー列が使用されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["invalid_value_option"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["行の無効なデータを処理するオプション。使用可能なオプション: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["fail_job"]}," および ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ignore_row"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["last_record"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["objects array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["増分ロードの最後のレコードの値"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["stage_file_size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ステージファイルサイズ（バイト単位）。デフォルト 104857600（100 MB）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["network_timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エラーを返す前に Snowflake サービスとのやり取りでレスポンスを待つ時間。デフォルト 0"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["query_timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エラーを返す前にクエリの完了を待つ時間。デフォルト 0"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["select"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["select の式。'query' が設定されていない場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["転送先テーブル名。'query' が設定されていない場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["where"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["行をフィルタリングするための条件"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["order_by"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["行をソートするための ORDER BY の式"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タイプとフォーマット仕様を含む列設定。列は Snowflake のサンプルデータに基づいて推測されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["stage_folder"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["内部ステージフォルダの設定（自動管理）"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スキーマ設定の推測","__idx":19},"children":["スキーマ設定の推測"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタを実行する前に、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:guess"]}," コマンドを使用して列タイプを自動検出し、完全な設定を生成することをお勧めします。このコマンドは Snowflake からデータをサンプリングして最適な列設定を推測します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これにより、以下を含む完全な ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]}," ファイルが生成されます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検出された列名とタイプ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Snowflake データタイプに基づく最適なデータタイプマッピング"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一括アンロードのパフォーマンス設定"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["guess コマンド実行後に生成される ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]}," の例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: snowflake_unload\n  account_name: treasuredata\n  user: snowflake_user\n  password: xxxxx\n  warehouse: DEMO_WH\n  db: TEST_DB\n  schema: PUBLIC\n  query: |\n    SELECT column1, column2, column3\n    FROM table_test\n    WHERE column4 != 1\n  incremental: true\n  incremental_columns: [column1, column3]\n  last_record: [140, 1500.5]\n  stage_file_size: 104857600\n  invalid_value_option: ignore_row\n  columns:\n  - name: column1\n    type: long\n  - name: column2\n    type: string\n  - name: column3\n    type: timestamp\n    format: \"%Y-%m-%dT%H:%M:%S.%L%z\"\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["使用可能な ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["out"]}," モードの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration#h2_1159725868"},"children":["modes"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをプレビューするには、preview コマンドを実行します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n+--------------+-----------------+----------------+\n| COLUMN1:long | COLUMN2:string  | COLUMN3:double |\n+--------------+-----------------+----------------+\n| 100          | \"Sample value1\" | 1900.1         |\n| 120          | \"Sample value3\" | 1700.3         |\n| 140          | \"Sample value5\" | 1500.5         |\n+--------------+-----------------+----------------+\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":20},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データのサイズによっては数時間かかる場合があります。データが保存されているデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のストレージは時間でパーティション分割されているため、--time-column オプションを指定することをお勧めします。オプションが指定されない場合、データコネクタは最初の ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["long"]}," または ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["timestamp"]}," 列をパーティショニング時間として選択します。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]}," で指定される列のタイプは ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["long"]}," または ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["timestamp"]}," タイプのいずれかである必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間列がない場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["add_time"]}," フィルターオプションを使用して追加できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time フィルタープラグイン"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table \\\n--time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:issue は ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)"]}," と ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["table(td_sample_table)"]}," がすでに作成されていることを前提としています。データベースまたはテーブルが TD に存在しない場合、td connector:issue は失敗します。そのため、データベースとテーブルを手動で作成するか、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:issue"]}," コマンドの ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--auto-create-table"]}," オプションを使用してデータベースとテーブルを自動的に作成してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml \\\n--database td_sample_db --table td_sample_table \\\n--time-column created_at --auto-create-table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["time"]}," というフィールドがある場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]}," オプションを指定する必要はありません。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":21},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的な Snowflake 一括アンロードインポートのために、データコネクタの定期実行をスケジュールすることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュールの作成","__idx":22},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:create"]}," コマンドを使用して新しいスケジュールを作成できます。以下が必要です:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールの名前"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cron 形式のスケジュール"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データが保存されるデータベースとテーブル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Connector 設定ファイル"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create \\\n    daily_bulk_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のストレージは時間でパーティション分割されているため、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]}," オプションを指定することもお勧めします（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"も参照してください）。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create \\\n    daily_bulk_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml \\\n    --time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," パラメータは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]}," の3つの特別なオプションも受け付けます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールは UTC タイムゾーンで設定されます。-t または --timezone オプションを使用してタイムゾーンを指定してスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," オプションは 'Asia/Tokyo'、'America/Los_Angeles' などの拡張タイムゾーン形式のみをサポートします。PST、CST などのタイムゾーン略語はサポートされておらず、予期しないスケジュールが設定される可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの一覧表示","__idx":23},"children":["スケジュールの一覧表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:list"]}," コマンドを実行することで、スケジュールされたエントリの一覧を確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"付録","__idx":24},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ssl-のサポート","__idx":25},"children":["SSL のサポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snowflake への接続は、Snowflake の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/jdbc-download"},"children":["公式 JDBC ドライバー"]},"を介して行われます。JDBC ドライバーはデフォルトかつ必須として SSL の使用を強制します（つまり、SSL = false の接続は拒否されます）。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"snowflake-認証","__idx":26},"children":["Snowflake 認証"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snowflake への接続には、このツールは2つの JDBC 認証オプションを提供します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Basic（ユーザー名/パスワード）:"]}," この標準ログイン方法は、ユーザーの Snowflake アカウントで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["多要素認証（MFA）が有効になっている場合は失敗します"]},"。これは、ジョブ実行中のコネクタの認証プロセスとの競合の可能性によるものです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key Pair 認証:"]}," この安全な方法は暗号化鍵ペアを使用します。MFA が有効かどうかに関わらず確実に動作するため、推奨されるアプローチです。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一括アンロードの仕組み","__idx":27},"children":["一括アンロードの仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このコネクタは Snowflake の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/guides-overview-unloading-data"},"children":["Bulk Data Unloading"]}," 機能を使用して高パフォーマンスのデータ転送を実現します。このプロセスには以下が含まれます:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["COPY INTO コマンド"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/sql-reference/sql/copy-into-location.html"},"children":["COPY INTO <location>"]}," コマンドを使用して、Snowflake データベーステーブルからSnowflake ステージのファイルにデータをコピーします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ファイルダウンロード"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/sql-reference/sql/get.html"},"children":["GET"]}," コマンドを使用して、ステージからコネクタに直接ファイルをダウンロードします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["並列処理"]},": ダウンロードされたファイルは並列で処理され、取り込みパフォーマンスが大幅に向上します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"増分ロードの仕組み","__idx":28},"children":["増分ロードの仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["一括アンロードコネクタの増分ロードは、標準の Snowflake コネクタとは異なるアプローチを使用します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["最大値アプローチ"]},": ORDER BY ステートメントを使用する代わりに、コネクタは最大値関数クエリを使用して上限と下限を決定します: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELECT Max(inc_col) FROM table"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["辞書順"]},": 複数の増分列の場合、コネクタは辞書順に並んだ列の組み合わせを使用して境界を特定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パフォーマンス向上"]},": このアプローチにより、大規模データセットでの高コストな ORDER BY 操作を回避できます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2つの増分列を使用した例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT *\nFROM my_table\nWHERE ((\"region\" > ?) OR (\"region\" = ? AND \"date\" > ?))\n  AND ((\"region\" < ?) OR (\"region\" = ? AND \"date\" <= ?))\n","lang":"sql"},"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":["incremental_columns としてサポートされるのは Timestamp、Datetime、数値列のみです"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["生クエリの場合、複雑なクエリでは主キーを自動的に検出できないため、incremental_columns が必要です"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["最適なパフォーマンスのために、増分列に適切なインデックスが設定されていることを確認してください"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パフォーマンスに関する考慮事項","__idx":29},"children":["パフォーマンスに関する考慮事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["リソース割り当て"]},": このコネクタは最適なパフォーマンスのために通常のコネクタよりも大きな CPU 割り当てが必要です"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Stage File Size"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stage_file_size"]}," パラメータを調整することで、データセットサイズと利用可能なメモリに基づいてパフォーマンスを最適化できます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Warehouse サイズ"]},": より大きな Snowflake ウェアハウスを使用すると、非常に大きなデータセットのアンロードパフォーマンスが向上する場合があります"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["並列処理"]},": コネクタはアンロードされたファイルの並列処理を自動的に処理して最大スループットを実現します"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"トラブルシューティング","__idx":30},"children":["トラブルシューティング"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ステージファイルの問題"]},": 指定したウェアハウスにアンロード操作のための十分なリソースがあることを確認してください"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["プレビューの問題"]},": 大きなテーブルのプレビューはサンプリングを使用するため、実際のデータ分布を反映しない場合があります"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パフォーマンスの問題"]},": パフォーマンスを向上させるために、ウェアハウスのサイズを大きくするか、ステージファイルサイズを調整することを検討してください"]}]}]},"headings":[{"value":"Snowflake Bulk Unloading インポート インテグレーション","id":"snowflake-bulk-unloading-インポート-インテグレーション","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソール を使用して接続を作成する","id":"treasure-コンソール-を使用して接続を作成する","depth":2},{"value":"新しい接続を作成","id":"新しい接続を作成","depth":3},{"value":"新しい Snowflake Bulk Unload Connector を作成","id":"新しい-snowflake-bulk-unload-connector-を作成","depth":3},{"value":"Snowflake データを Treasure Data に転送","id":"snowflake-データを-treasure-data-に転送","depth":3},{"value":"Source Table","id":"source-table","depth":3},{"value":"設定例","id":"設定例","depth":4},{"value":"Table View","id":"table-view","depth":4},{"value":"Data Settings","id":"data-settings","depth":3},{"value":"パフォーマンスオプション","id":"パフォーマンスオプション","depth":4},{"value":"Columns Settings","id":"columns-settings","depth":4},{"value":"START AFTER（値）","id":"start-after値","depth":4},{"value":"プレビュー","id":"プレビュー","depth":3},{"value":"Data Placement - 転送先データベースとテーブルを選択","id":"data-placement---転送先データベースとテーブルを選択","depth":3},{"value":"ストレージ","id":"ストレージ","depth":4},{"value":"スケジュール","id":"スケジュール","depth":4},{"value":"CLI を使用してコネクタを設定する","id":"cli-を使用してコネクタを設定する","depth":2},{"value":"seed.yml ファイルの準備","id":"seedyml-ファイルの準備","depth":3},{"value":"スキーマ設定の推測","id":"スキーマ設定の推測","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":4},{"value":"スケジュールの一覧表示","id":"スケジュールの一覧表示","depth":3},{"value":"付録","id":"付録","depth":2},{"value":"SSL のサポート","id":"ssl-のサポート","depth":3},{"value":"Snowflake 認証","id":"snowflake-認証","depth":3},{"value":"一括アンロードの仕組み","id":"一括アンロードの仕組み","depth":3},{"value":"増分ロードの仕組み","id":"増分ロードの仕組み","depth":3},{"value":"パフォーマンスに関する考慮事項","id":"パフォーマンスに関する考慮事項","depth":3},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":3}],"frontmatter":{"seo":{"title":"Snowflake Bulk Unloading インポート インテグレーション","description":"Snowflakeから大規模データセットを高速にTreasure AIへインポートする、Bulk Unloadingインテグレーションの設定方法を解説します。最大300%のパフォーマンス向上を実現する技術的な接続ガイドです。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/snowflake-bulk-unloading-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}