{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Snowflake Import Integration","description":"Snowflakeからデータをインポートする方法を詳しく解説。認証方法、接続設定、データ転送の手順を日本語で説明します。","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"snowflake-import-integration","__idx":0},"children":["Snowflake Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snowflakeは、クラウドベースのデータプラットフォームを提供し、ほぼ無制限のスケール、同時実行性、パフォーマンスでデータの価値を引き出すことができます。Treasure AIのSnowflake連携により、Snowflakeテーブルに保存されているデータをTreasure AIにインポートできます。また、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-export-integration"},"children":["Treasure AIのExport Integration"]},"についても詳しく知ることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure AIの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブル/ビューをクエリするための適切な権限を持つSnowflakeデータウェアハウスの既存アカウント"]}]},{"$$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に移動して検索します。Snowflakeを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/catalog-search.a0943a74401fc7e2c6b0f77d6bafad995d3944a84645373ef985054726db9381.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しいsnowflake-connectorを作成","__idx":4},"children":["新しいSnowflake Connectorを作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のダイアログが開きます。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/new-authentication-credentials.f12d4f0cb1e7c25df0ff34fa277b604d6b17a62641aca28819fd28abfd427055.f59f9572.webp","alt":"Snowflakeの New Authentication ダイアログ。Authentication Method、User、Password、Account、Default Role の各フィールドが表示されています"},"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 AIが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":["Default Role"]},"（オプション）: この認証を使用するジョブが独自のロールを指定しない場合に使用されるロールです。Snowflakeの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/admin-user-management#user-roles"},"children":["デフォルトロール"]},"を使用する場合は空欄のままにします"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OPTIONS"]},": JDBC接続オプション（ある場合）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/new-authentication-details.50d165348afa1b1bc8fb6f3f6b7136f6cfb9be61e55896dcd7afd6a9bc3641a1.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタの名前を指定します。認証を他のユーザーと共有するかどうかを指定します。共有すると、他のチームメンバーがあなたの認証を使用してコネクタソースを作成できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"snowflakeデータをtreasure-aiに転送","__idx":5},"children":["SnowflakeデータをTreasure AIに転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authenticationsページで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/create-source-from-authentication.fabf01ee8894539e254b5b810f52c7e68d1c736a03d9bfb4db791cd07482b6bd.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細を入力します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"fetch-from","__idx":6},"children":["Fetch from"]},{"$$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":["Drive Version"]},": 使用するSnowflake JDBCドライバを指定します。オプションは以下の通りです"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.13.19（コネクタがデフォルトで使用する現在のバージョン）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.14.3"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.21.0（最新バージョン）"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Role Name"]},": このソースがSnowflakeで使用するアクセス制御ロールを指定します。空欄の場合は認証に設定された",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Default Role"]},"が使用され、認証にも設定がない場合はSnowflakeの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/admin-user-management#user-roles"},"children":["デフォルトロール"]},"が使用されます"]}]},{"$$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":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration#%E3%82%A4%E3%83%B3%E3%82%AF%E3%83%AA%E3%83%A1%E3%83%B3%E3%82%BF%E3%83%AB%E3%83%AD%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF"},"children":["インクリメンタルローディングの仕組み"]},"を参照してください"]},{"$$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、Ignore Invalid Value"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ignore Row"]},"のオプションがあります。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fail Job"]},"が選択されている場合、現在のジョブが停止しERRORステータスになります。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ignore Invalid Value"]},"が選択されている場合、Treasure AIテーブルのカラムがstring型でない場合はNull値を保存し、カラムがstring型の場合は値を文字列として保存しようとします。",{"$$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"]},"は、指定されたwarehouse、database、schemaに対する権限を持っている必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/fetch-from-settings.7414cccafa1b66eebc93a431f22f4760fa52b480a6708ac920ce51f1c1c092d0.f59f9572.png","alt":""},"children":[]}]},{"$$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 FROM table_test WHERE column4 != 1\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":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/about-data-preview"},"children":["プレビュー"]},"が表示されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プレビュー","__idx":9},"children":["プレビュー"]},{"$$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":"/products/customer-data-platform/integration-hub/batch/import/about-data-preview"},"children":["プレビューに関する詳細情報"]},"をお読みください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ型マッピングの設定など、変更を行う場合は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advanced Settings"]},"を選択します。それ以外の場合は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/data-preview.59adea24d3e0809d471fb5ab60962b6fa0715912f16172b0dd83852532caa5fd.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"advanced-settings","__idx":10},"children":["Advanced Settings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Advanced Settingsでは、転送をカスタマイズできます。必要に応じて以下のセクションを編集します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする際に、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["source"]},"（Snowflakeカラム）から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["destination"]},"（Treasure AI）へのデフォルトのデータ型変換を変更するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration#%E3%83%87%E3%83%BC%E3%82%BF%E5%9E%8B%E5%A4%89%E6%8F%9B%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF"},"children":["データ型変換の仕組み"]},"に関する付録を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"column-options","__idx":11},"children":["COLUMN OPTIONS"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Type Mapping"]},": Snowflakeカラム名を入力します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["source"]},"からこの指定された型としてデータを取得します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Destination Data Type"]},": 期待される",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["destination"]},"のデータ型"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp Format"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]},"が日付、時刻、またはタイムスタンプで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Destination Data Type"]},"が文字列の場合、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["destination"]},"型をフォーマットするために使用されるフォーマットパターン。例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd'T'HH:mm:ssZ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Time zone"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp Format"]},"と共に使用します。指定されていない場合、フォーマットはGMT値です。+0800や-1130などのZone offset値をサポートします"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Type Mapping"]},": Snowflakeカラム名を入力します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["source"]},"からこの指定された型としてデータを取得します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Destination Data Type"]},": 期待される",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["destination"]},"のデータ型"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"start-after-values","__idx":12},"children":["START AFTER (VALUES)"]},{"$$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":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Rows per Batch"]},": 一度に取得する行数。デフォルトは10000行です"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Network Timeout"]},": エラーを返す前に、Snowflakeサービスとやり取りする際の応答の待機時間を指定します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query Timeout"]},": エラーを返す前に、クエリが完了するまでの待機時間を指定します。ゼロ（0）は無期限に待機することを示します"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/advanced-settings-column-options.331fed439f00533ea2c5c9a5508d7b53b9040f2dce4c92f6254e523484d5e5fe.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"transfer-to---ターゲットデータベースとテーブルを選択","__idx":13},"children":["Transfer to - ターゲットデータベースとテーブルを選択"]},{"$$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/data-placement.b8fc7a7c8415fb99f9be502538ce6603fff26c2624af5ac2a17374a193e2d37c.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジューリング","__idx":14},"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":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Once now"]},": 1回限りのジョブを設定します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","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.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"詳細","__idx":15},"children":["詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいソースとして、Snowflakeコネクタの名前を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/source-details-name.aa0f7e420ce2eb51d7e1e07498ddf5431cb829d27dc73602923e5671a80c4619.f59f9572.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。データコネクタが",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]},"として保存されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sources","__idx":16},"children":["Sources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このページでは、既存のジョブを編集できます。また、ジョブアイコンを選択することで、このデータコネクタを使用した過去の転送の詳細を表示できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sources-list.6ee152dbdb65976bccf553601e3b2da0932482bd12f91cf5e1c43182231b1337.f59f9572.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":"/tools/cli-and-sdks/quickstart"},"children":["Treasure Data Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"loadymlファイルの準備","__idx":18},"children":["load.ymlファイルの準備"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["in: セクションでは、Snowflakeからコネクタに取り込まれる内容を指定し、out: セクションでは、コネクタがTreasure AIのデータベースに出力する内容を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のようにSnowflakeアカウントのアクセス情報を入力してください:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: snowflake\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\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":"Config key"},"children":["Config key"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$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\"である必要があります）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["driver_version"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.13.19（コネクタがデフォルトで使用する現在のバージョン）​"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.21.0（最新のSnowflake JDBCバージョン）​"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3.14.3（Snowflakeがドライバーのロギング動作を変更してジョブの失敗を引き起こす可能性がある前のバージョン）"]}]}]}]},{"$$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":["account name"]},"を参照してください。"]}]},{"$$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":"strong","attributes":{},"children":["default_role"]},"より優先されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["default_role"]},{"$$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":["role"]},"が空欄または未設定の場合に使用されるフォールバックのロール。Treasure コンソールでは認証の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Default Role"]},"にあたり、その認証を再利用するすべてのジョブに適用されます"]}]},{"$$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の場合、インクリメンタルローディングの仕組みを有効にします。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration#%E3%82%A4%E3%83%B3%E3%82%AF%E3%83%AA%E3%83%A1%E3%83%B3%E3%82%BF%E3%83%AB%E3%83%AD%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF"},"children":["インクリメンタルローディングの仕組み"]},"を参照してください。"]}]},{"$$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":["インクリメンタルロード用のカラム名。指定されていない場合は主キーカラムを使用します"]}]},{"$$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":[]},{"$$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":"strong","attributes":{},"children":["insert_null"]}," です"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["last_record"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オブジェクトの配列"]},{"$$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":["fetch_rows"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一度に取得する行数。デフォルト 10000"]}]},{"$$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 サービスとのやり取りでレスポンスを待機する時間。デフォルトは未設定"]}]},{"$$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":[]},{"$$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":["column_options"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["キーと値のペア"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ソース（Snowflake）から宛先（Treasure AI）へのデータ型をカスタマイズするオプション。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/snowflake-import-integration#%E3%83%87%E3%83%BC%E3%82%BF%E5%9E%8B%E5%A4%89%E6%8F%9B%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF"},"children":["データ型変換の仕組み"]},"を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["value_type"]},{"$$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":["column_options"]}," と併用し、この型を使用して Snowflake JDBC ドライバーからデータを取得しようとします"]}]},{"$$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":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先データ型。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}," から取得した値はこの型に変換されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp_format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Java 言語のタイムスタンプフォーマットパターン。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}," が日付、時刻、またはタイムスタンプで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type"]}," が文字列の場合に、宛先値をフォーマットするために使用します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timezone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["RFC 822 タイムゾーン。timestamp_format と併用します。例：+0300 または -0530"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インクリメンタルと column_options を使用した ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]}," の例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: snowflake\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  column_options:\n    colum5 : {value_type: \"timestamp\", type: \"string\", timestamp_format: \"yyyy-MMM-dd HH:mm:ss Z\", timezone: \"+0700\"}\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":["モード"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをプレビューするには、preview コマンドを実行します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"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"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":19},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データのサイズによっては数時間かかる場合があります。データが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure AI のストレージは時間によってパーティション分割されているため、--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":"/products/customer-data-platform/integration-hub/batch/import/filter/add_time-filter-function"},"children":["add_time フィルタープラグイン"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n  --time-column created_at\n"},"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)"]}," がすでに作成されていることを前提としています。データベースまたはテーブルが Treasure AI に存在しない場合、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":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table\n"},"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":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":20},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的な Snowflake インポートのために、データコネクターの定期実行をスケジュールできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュールの作成","__idx":21},"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":["データコネクター設定ファイル"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:create\n    daily_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 AIのストレージは時間で区切られているため、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]}," オプションの指定も推奨されます(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"も参照)。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create\n    daily_import\n    \"10 0 * * *\"\n    td_sample_db\n    td_sample_table\n    load.yml\n    --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," パラメータは3つの特別なオプション ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]}," も受け入れます。"]},{"$$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":"em","attributes":{},"children":["おらず"]},"、予期しないスケジュールになる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの一覧表示","__idx":22},"children":["スケジュールの一覧表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:list"]}," コマンドを実行すると、スケジュールされたエントリのリストを確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:list\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"付録","__idx":23},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sslのサポート","__idx":24},"children":["SSLのサポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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":25},"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":["キーペア認証:"]}," この安全な方法は、暗号化キーペアを使用します。これが推奨されるアプローチであり、MFAが有効かどうかに関係なく確実に機能します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ型変換の仕組み","__idx":26},"children":["データ型変換の仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ型変換は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["カラム型マッピング"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["column_options"]},"とも呼ばれ、Connectorが",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ソース"]},"データ型(Snowflake)から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デスティネーション(type)",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データ型(Treasure AI)にデータを変換するために使用します。Connectorは"]},"ソース"]},"から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as type (value_type)",{"$$mdtype":"Tag","name":"strong","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":"ソース (Snowflake)"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ソース (Snowflake)"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Get as Type (value_type)"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type (value_type)"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デスティネーション (type)"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デスティネーション (type)"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NUMBER (scale > 0)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DECIMAL (scale > 0)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NUMERIC (scale > 0)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NUMERIC (scale = 0)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INTEGER"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BIGINT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SMALLINT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT4"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT8"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DOUBLE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DOUBLE PRECISION"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["REAL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARCHAR"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CHARACTER"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CHAR"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$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":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TEXT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BOOLEAN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIME"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATETIME"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]}]},{"$$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":["timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP_LTZ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP_NTZ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP_TZ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARIANT (公式にはサポートされていません)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OBJECT (公式にはサポートされていません)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ARRAY (公式にはサポートされていません)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BINARY"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされていません"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARBINARY"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされていません"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}," でサポートされるデータ型"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["date"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["decimal"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["json"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["time"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type"]}," でサポートされるデータ型"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["json"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}," は、Snowflakeデータ型からデータを取得するために使用できます"]},{"$$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":"value_type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Snowflakeデータ型"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Snowflakeデータ型"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BOOLEAN, NUMERIC, INT, INTEGER, BIGINT, SMALLINT, FLOAT, DOUBLE, REAL, VARCHAR, CHARACTER, CHAR, STRING, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE, CHAR, VARCHAR, STRING, TIMESTAMP, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INT, SMALLINT, INTEGER, BIGINT, REAL, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR, STRING, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["decimal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DECIMAL, INT, SMALLINT, INTEGER, BIGINT, REAL, FLOAT, DOUBLE, BIT, CHAR, VARCHAR, STRING, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["json"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARCHAR, CHAR, STRING, TEXT, VARIANT, OBJECT, ARRAY"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LONG, INT, SMALLINT, INTEGER, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, CHAR, VARCHAR, STRING, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIME, CHAR, VARCHAR, STRING, TIMESTAMP, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP, CHAR, VARCHAR, DATE, TIME, STRING, TEXT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ほとんどのSnowflakeデータ型の取得に使用できます"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}," は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type"]}," に変換できます"]},{"$$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":"value_type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["value_type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean, double, long, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long, timestamp, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean, double, long, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["decimal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean, double, long, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["json"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["json, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean, double, long, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long, timestamp, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long, timestamp, string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double, long, string, json"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意:"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]}," が date、time、または timestamp で、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デスティネーション"]},"が string の場合、値をフォーマットするための追加オプションがあります。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp Format: 標準的なJavaの日時フォーマットパターンを受け入れます 例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd HH:mm:ss Z"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timezone: RFC822タイムゾーンフォーマットを受け入れます 例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["+0800"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]}," の 'decimal' 型はサポートされていますが、デフォルトでは使用されません。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ソース"]},"に",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デスティネーション"]},"の数値範囲に収まらない数値が含まれている場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get as Type"]}," を decimal にし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デスティネーション"]},"を string にしてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インクリメンタルローディングの仕組み","__idx":27},"children":["インクリメンタルローディングの仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インクリメンタルローディングは、単調増加する一意のカラム(AUTO_INCREMENTカラムなど)を使用して、前回の実行後に挿入(または更新)されたレコードをロードします。"," ","まず、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]}," が設定されている場合、このコネクタは追加のORDER BYでレコードをすべてロードします。このモードは、前回のスケジュール実行以降に変更されたオブジェクトターゲットのみを取得する場合に便利です。たとえば、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental_columns"]},": [updated_at, id] オプションが設定されている場合、クエリは次のようになります:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"SELECT * FROM (\n ...original query is here...\n)\nORDER BY updated_at, id\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バルクデータのロードが正常に終了すると、次回の実行で使用されるように、last_record: パラメータをconfig-diffとして出力します。"," ","次回の実行時に、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_record"]},": も設定されている場合、このコネクタは最後のレコードより大きいレコードをロードするための追加のWHERE条件を生成します。たとえば、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_record"]},": [\"2017-01-01T00:32:12.000000\", 5291] が設定されている場合、"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"SELECT * FROM (\n ...original query is here...\n)\nWHERE updated_at > '2017-01-01T00:32:12.000000' OR (updated_at = '2017-01-01T00:32:12.000000' AND id > 5291)\nORDER BY updated_at, id\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["その後、次回の実行で更新された",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_record"]},"が使用されるように、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_record"]},": を更新します。"," ","重要: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental_columns"]},": オプションを設定する場合は、フルテーブルスキャンを避けるために、カラムにインデックスがあることを確認してください。この例では、次のインデックスを作成する必要があります:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"CREATE INDEX embulk_incremental_loading_index ON table (updated_at, id);\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["推奨される使用方法は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental_columns"]}," を未設定のままにして、コネクタが自動的にAUTO_INCREMENTプライマリキーを見つけるようにすることです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["incremental_columnsとしてサポートされているのは、Timestamp、Datetime、および数値カラムのみです。"," ","生のクエリの場合、複雑なクエリのプライマリキーを検出できないため、incremental_columnsが必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: false"]}," が設定されている場合、データコネクタは、最後に更新された時期に関係なく、指定されたSnowflakeテーブル/ビューのすべてのレコードを取得します。このモードは、'replace' モードを使用してデスティネーションテーブルにデータを書き込む場合に最適です。"]}]},"headings":[{"value":"Snowflake Import Integration","id":"snowflake-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソールを使用して接続を作成する","id":"treasure-コンソールを使用して接続を作成する","depth":2},{"value":"新しい接続を作成","id":"新しい接続を作成","depth":3},{"value":"新しいSnowflake Connectorを作成","id":"新しいsnowflake-connectorを作成","depth":3},{"value":"SnowflakeデータをTreasure AIに転送","id":"snowflakeデータをtreasure-aiに転送","depth":3},{"value":"Fetch from","id":"fetch-from","depth":3},{"value":"例: 設定","id":"例-設定","depth":4},{"value":"Table View","id":"table-view","depth":4},{"value":"プレビュー","id":"プレビュー","depth":3},{"value":"Advanced Settings","id":"advanced-settings","depth":3},{"value":"COLUMN OPTIONS","id":"column-options","depth":4},{"value":"START AFTER (VALUES)","id":"start-after-values","depth":4},{"value":"Transfer to - ターゲットデータベースとテーブルを選択","id":"transfer-to---ターゲットデータベースとテーブルを選択","depth":3},{"value":"スケジューリング","id":"スケジューリング","depth":2},{"value":"詳細","id":"詳細","depth":3},{"value":"Sources","id":"sources","depth":3},{"value":"CLIを使用したコネクタの設定","id":"cliを使用したコネクタの設定","depth":2},{"value":"load.ymlファイルの準備","id":"loadymlファイルの準備","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}],"frontmatter":{"seo":{"title":"Snowflake Import Integration","description":"Snowflakeからデータをインポートする方法を詳しく解説。認証方法、接続設定、データ転送の手順を日本語で説明します。"}},"lastModified":"2026-11-24T09:43:03.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/snowflake-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}