SQL/API and Connector Loading
Use SQL, HTTP, or a connector when an application or pipeline controls what to load and when. Choose a target database and table, and use a warehouse SQL account with permission to load into that table. Get the warehouse endpoint and connection settings from Connect in the VeloDB Cloud Console. See Connection Methods.
Load with SQL
Use INSERT INTO VALUES for a small batch of rows supplied by an application. Use INSERT INTO SELECT to filter or transform data from another table or an external catalog as you load it.
For example, if staging_orders and paid_orders exist in your database, run this statement in the SQL Editor or a SQL client to copy only paid orders:
INSERT INTO paid_orders (order_id, amount)
SELECT order_id, amount
FROM staging_orders
WHERE status = 'paid';
Send a file or batch over HTTP
Use Stream Load to push data from a script or application. Under Connect, select Stream Load and copy the Request URL template for your warehouse. Fill in the database and table, then send an HTTP PUT request with the data as the request body. For a headerless CSV file whose columns match the target table in order, run the following command. Replace the placeholders with your SQL username and the completed request URL. curl prompts for your password.
curl --location-trusted --user "<warehouse-user>" \
--header "format: csv" \
--header "column_separator:," \
--upload-file orders.csv \
"<request-url>"
Check Status, NumberLoadedRows, and NumberFilteredRows in the JSON response to verify the result.
Write from an existing pipeline
Choose the connector for the system that runs your pipeline. Configure the warehouse endpoint, SQL credentials, and target table in the connector. Map the incoming fields to the target columns, then query the target table to verify that a batch of source records arrived.
| Pipeline | Connector guide |
|---|---|
| Apache Flink job | Write to VeloDB Cloud with the Flink Doris Connector |
| Apache Spark batch or streaming job | Write a DataFrame with the Spark Doris Connector |
| Kafka Connect pipeline | Load Kafka topics with the Doris Kafka Connector |
For continuous ingestion jobs that run in the warehouse, asynchronous file loads, and a comparison of all loading methods, see the 26.x Load Overview.