Docs menu · Reference

Imports an Arrow-compatible file (Parquet, CSV, or JSONL) into a product primitive on the selected branch and space. Rows are written through the standard batch commands, so the import commits like any other write. Returns a summary of the target primitive, the input file, and the imported, skipped, and batch counts.

Status commands return a scalar or compact status payload and do not mutate database state.

Examples

Import a primitive’s rows from a Parquet file written by export.

CLI

$ strata kv put greeting hello
$ strata arrow export kv parquet /tmp/exports/kv.parquet
$ strata kv delete greeting
$ strata arrow import /tmp/exports/kv.parquet kv  # Rows are keyed by their source column; kv restores greeting=hello.
$ strata kv get greeting

Wire

{"key":"Z3JlZXRpbmc=","type":"kv_put","value":"aGVsbG8="}
{"format":"parquet","path":"/tmp/exports/kv.parquet","primitive":"kv","type":"arrow_export"}
{"key":"Z3JlZXRpbmc=","type":"kv_delete"}
{"file_path":"/tmp/exports/kv.parquet","target":"kv","type":"arrow_import"}
{"key":"Z3JlZXRpbmc=","type":"kv_get"}

Parameters

NameTypeRequiredDescription
collectionstringnoTarget vector collection for vector imports.
file_pathstringyesInput file path.
formatArrowFileFormatnoInput file format. Defaults to extension detection.
key_columnstringnoOptional key column override.
targetArrowImportTargetyesProduct primitive to import into.
value_columnstringnoOptional value, document, or embedding column override.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

StatusResponse<ArrowImport>.

Errors

Invocation

  • CLI: strata arrow import
  • Wire type: arrow_import

agents: this page as markdown → /docs/reference/arrow/import.md