ファイル(CSV、JSON、Parquet など)をマネージドの AIDP デルタテーブル(高性能データベーステーブル)に読み込みます。 **次のような場合に使用:** - ユーザーがファイルをテーブルに取り込みたい場合 - ファイルから新しいテーブルを作成したい場合 - 生のデータをレイクハウス(統合データ保管庫)に格納したい場合 1ステップでの処理と、アップロード→形式推測→作成という3ステップでの処理の両方に対応しています。公式の `aidp` コマンドラインツールで操作できます。
Load a data file (CSV/JSON/Parquet/etc.) into a managed AIDP Delta table. Use when the user wants to ingest a file into a table, create a table from a file, or land raw data in the lakehouse. Supports the 1-step path and the 3-step upload→infer→create path. Control-plane via the official `aidp` CLI.
aidp-ingest-file-to-table — ファイル → マネージド Delta テーブルファイルをマネージド AIDP テーブルに取り込みます。
1回の呼び出しで完結させる方法と、推論されたスキーマをレビュー・調整したい場合の3ステップのステージングフローの、いずれかを選択できます。
これは DataLake の schema/tables リソースに対する コントロールプレーン フローです。
主エンジン: 公式 Oracle aidp CLI(同一の REST API + 認証)。
CLI がインストールされていない場合のフォールバックとして oci raw-request を使用します。
references/aidp-cli-map.md に基づく手順:
schema generate-temp-file-upload-target
→ schema infer / infer-with-preview
→ schema create-data-table / create-table(schema retrieve-par も使用可)
すべてのコマンドに --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region <r> を指定します。
# 3ステップ(コントロールフロー): ステージング → 推論 → 作成
aidp schema generate-temp-file-upload-target --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # アップロードターゲット / PAR を返す(retrieve-par も使用可)
aidp schema infer-with-preview --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # カラム / 型 / プレビューをレビュー(infer も使用可)
aidp schema create-data-table --body-file .aidp/payloads/create-data-table-<name>.json \
--instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # create-table でも可
ミューテーション操作(create-data-table / create-table、アップロード):
実行前にボディを .aidp/payloads/ に保存し、ユーザーに確認を取ってから実行してください
(references/payloads.md 参照)。
フォールバック(CLI なし) —
oci raw-request 経由で同一の REST + 認証を使用し、
…/20240831/dataLakes/<OCID>/… に対してリクエストします
(認証ラダーは references/oci-raw-request.md 参照):
POST /tables/actions/uploadDataFile(マルチパート/バイナリは PAR アップロードが必要な場合あり — aidp-volumes 参照)POST /tables/actions/inferSchemaPOST /tables/actions/createTable(catalogKey、schemaKey、テーブル名、確定カラム、ソースフォーマット、ロードオプションを指定)GET /tables?catalogKey=<cat>&schemaKey=<cat.schema>事前検証(情報の捏造禁止): アップロード / 推論 / 作成の各アクションのシェイプは、この環境では 未検証 です (
references/rest-endpoint-map.mdに未記載)。 書き込みを行う前に、ライブプローブで確認してください(まず対象スキーマに対してGET /tables?catalogKey=…&schemaKey=…が 200 を返すことを確認)。結果は記録してください。
2026-06-10 に de-agent 上でライブ検証済み(CSV →
de_ingest_test、3行)— 訂正: 上記のuploadDataFile/inferSchema/createTableというアクション名は 誤りです。 正しい動作フローはschemaリソースの3ステップです:
generate-temp-file-upload-targetが PAR とociFilePathを返す- PAR にファイルのバイト列を PUT する(HTTP 200)
infer-with-preview—locationにはociFilePathの OCI URI を指定すること(uploadKeyは不可。uploadKeyを渡すと 400 エラー)create-data-tableは 202 +datalake-async-operation-keyを返す(SUCCEEDEDになるまでポーリング)
create-data-tableはヘッダーなし / 位置ベース: 作成時にheader=trueは無視されるため、tableFieldsにはリーダーのカラム名(_c0/_c1/_c2…)を使用してください。id/name/amtのような名前を付けると、UNRESOLVED_COLUMNエラーで非同期ジョブが失敗します。 リネームは後からALTER TABLE … RENAME COLUMNで行ってください。
catalog.schema.table を確認します(必要に応じてスキーマを先に作成してください)。aidp schema create-table でソースファイル・フォーマット・オプションを指定 — スキーマが問題なく推論できる場合に最速の方法です。generate-temp-file-upload-target → infer-with-preview(カラム / 型をユーザーとレビューし、型・ヘッダー・デリミタを修正)→ 確定したカラムで create-data-table を実行。202 と非同期操作キーを返す場合があります — 終端状態になるまでポーリングしてください(非同期の規約は references/oci-raw-request.md 参照。aidp-observability で追跡可能)。aidp schema list-tables / GET /tables?… で検証し、完全修飾テーブル名と行数 / カラム数のサマリーを報告してください。aidp-federate を使用してください(このスキルはファイル→テーブル専用です)。aidp-workspace-files、aidp-volumes、aidp-profiling-tablesaidp-ingest-file-to-table — file → managed Delta tableLand a file into a managed AIDP table, either in one call or via the staged 3-step flow when you need to
review/adjust the inferred schema. This is a control-plane flow on the DataLake schema/tables
resource. Primary engine: the official Oracle aidp CLI (same REST API + auth); oci raw-request is
the fallback when the CLI isn't installed.
Per references/aidp-cli-map.md: schema generate-temp-file-upload-target
→ schema infer / infer-with-preview → schema create-data-table / create-table (also
schema retrieve-par). All commands take --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region <r>.
# 3-step (control): stage → infer → create
aidp schema generate-temp-file-upload-target --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # returns upload target / PAR (also: retrieve-par)
aidp schema infer-with-preview --instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # review columns/types/preview (or: infer)
aidp schema create-data-table --body-file .aidp/payloads/create-data-table-<name>.json \
--instance-id <DATALAKE_OCID> --auth api_key --profile DEFAULT --region us-ashburn-1 # or: create-table
Mutating ops (create-data-table/create-table, upload): persist the body to .aidp/payloads/
and confirm with the user before running (see references/payloads.md).
Fallback (no CLI) — same REST + auth via oci raw-request against
…/20240831/dataLakes/<OCID>/… (auth ladder in references/oci-raw-request.md):
POST /tables/actions/uploadDataFile (multipart/binary may need PAR upload — see aidp-volumes),
POST /tables/actions/inferSchema, POST /tables/actions/createTable (with catalogKey, schemaKey,
table name, finalized columns, source format, load options), verify GET /tables?catalogKey=<cat>&schemaKey=<cat.schema>.
Verify-first (no-fabrication): the upload/infer/create action shapes are UNVERIFIED in this env (not yet in
references/rest-endpoint-map.md). Confirm with a live probe (start with aGET /tables?catalogKey=…&schemaKey=…200 against the target schema) before any write; record results.
Live-verified 2026-06-10 on de-agent (CSV →
de_ingest_test, 3 rows) — correction: theuploadDataFile/inferSchema/createTableaction names above are WRONG. The working flow is theschema-resource 3-step: (1)generate-temp-file-upload-targetreturns a PAR +ociFilePath; (2) PUT the file bytes to the PAR (HTTP 200); (3)infer-with-preview— itslocationMUST be theociFilePathOCI URI, not theuploadKey(passinguploadKey→ 400); (4)create-data-tablereturns 202 + adatalake-async-operation-key(poll toSUCCEEDED).create-data-tableis HEADERLESS/POSITIONAL:header=trueis ignored at create, sotableFieldsmust use the reader column names_c0/_c1/_c2…— naming themid/name/amtfails the async op withUNRESOLVED_COLUMN. Rename afterward viaALTER TABLE … RENAME COLUMN.
catalog.schema.table
(create the schema first if needed).aidp schema create-table referencing the source file, format, and options —
fastest when the schema infers cleanly.generate-temp-file-upload-target → infer-with-preview (review columns/types
with the user; fix types/headers/delimiters) → create-data-table with the finalized columns.202 with an async-operation key — poll until terminal (async
convention in references/oci-raw-request.md; track via aidp-observability).aidp schema list-tables / GET /tables?…; report the fully-qualified table name and row/column summary.aidp-federate,
not this skill (this is file→table).aidp-workspace-files, aidp-volumes, aidp-profiling-tables原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。