imports:get#
#rai imports:get [OPTIONS]
Gets details for a specified data stream imported into the RelationalAI (RAI) Native App.
Requires the cdc_admin
application role.
Options#
Option | Type | Description |
---|---|---|
--id | Text | The ID of the import to get details for. Data stream IDs can be found using the api.data_streams view. If missing, you are prompted to select the ID interactively. |
Example#
Use the imports:get
command to get details for a specific data stream by ID:
#❯ rai imports:get --id ds_a1b2c3d4_e5f6_7a89_b123_d456e789
---------------------------------------------------
▰▰▰▰ Imports fetched
▰▰▰▰ Import details fetched
Field Value
─────────────────────────────────────────────────────────────────────────────────────
id ds_a1b2c3d4_e5f6_7a89_b123_d456e789
created_at 2024-10-10 11:44:24
created_by jane.doe@company.com
status CREATED
reference_name DATA_STREAM_TABLE
reference_alias 1234abcd-5678-90ef-ab12-3456cdef7890
fq_object_name example_db.sales.view1
rai_database SalesModel
rai_relation example_db_sales_view1
data_sync_status SYNCED
pending_batches_count 0
next_batch_status N/A
next_batch_unloaded_timestamp N/A
next_batch_details N/A
last_batch_details {
"rows": 1659,
"size": 49010,
"writeChangesDuration": 2257,
"writeChangesEnd": "2024-10-10T11:44:36.323Z",
"writeChangesStart": "2024-10-10T11:44:34.066Z"
}
last_batch_unloaded_timestamp 2024-10-10 11:45:11
cdc_status STARTED
---------------------------------------------------
See Data Management for more information on data streams.