Insert Data Manually
Use manual data insertion for ad-hoc jobs, not for ongoing insertion or ingestion.
For standard data ingestion that scales with load, either use Stream Ingest or Batch Ingest . Summary Tables should be used for aggregations.
There are two ways to insert data manually:
- From a query result
- From raw data
Set up a table⚓︎
See Projects & Tables to create a table.
Configure the default transform⚓︎
A default transform must be deployed. See Write Transforms for more detail.
Limitations
- Insertion fails if the primary timestamp field is missing
- No ingestion scripting features execute when inserting data manually
- The transform must be the default:
"is_default": true
Insert data⚓︎
You can query another Hydrolix table in the cluster and directly insert the query results. For data not already in the cluster, you can also manually insert data.
Insert from a query result⚓︎
To insert from a query result, combine the INSERT INTO statement with a SELECT statement.
This generates a query with the SELECT toStartOfDay(timestamp) as day ... and inserts the resulting rows into myproject.mytable.
Insert manually⚓︎
Insert data manually.
You can insert multiple rows in a single statement.
After the above two commands
The response for the INSERT INTO is a JSON object containing the bytes written, number of partitions, and rows written. Authorization credentials are omitted from the below example, see HTTP Query API for examples.