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
| Name | Type | Required | Description |
|---|---|---|---|
collection | string | no | Target vector collection for vector imports. |
file_path | string | yes | Input file path. |
format | ArrowFileFormat | no | Input file format. Defaults to extension detection. |
key_column | string | no | Optional key column override. |
target | ArrowImportTarget | yes | Product primitive to import into. |
value_column | string | no | Optional 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
failed_precondition.engine.runtime_closednot_found.engine.branchinvalid_argument.engine.product_spaceinvalid_argument.executor.arrow_feature_disabledinvalid_argument.executor.arrow_formatinvalid_argument.executor.arrow_input_missinginvalid_argument.executor.arrow_key_columninvalid_argument.executor.arrow_value_columninvalid_argument.executor.arrow_collectioninvalid_argument.executor.arrow_embedding_typeinvalid_argument.executor.arrow_vector_dimensioninvalid_argument.executor.arrow_json_keyinvalid_argument.executor.arrow_base64unavailable.executor.arrow_iointernal.executor.arrow
Invocation
- CLI:
strata arrow import - Wire type:
arrow_import