Doel
Durably append JSON rows from an Element into an uplink/parquet-backed datasource.
Elements runtime reference / Datasource access
appendDataSourceRowsDurably append JSON rows from an Element into an uplink/parquet-backed datasource.
appendDataSourceRows(dataSourceId, rows=None, merge=None, forcedFilterHash=None, meta=None, timeoutSeconds=None, idempotencyKey=None)
Durably append JSON rows from an Element into an uplink/parquet-backed datasource.
append_datasource_rowsdataSources.appendRowsdataSources.append_rowsUse these fields as the Python call arguments or keyword payload for this helper.
{
"dataSourceId": "element_event_store",
"rows": [
{
"ts": "2026-07-06T12:00:00Z",
"status": "ok"
}
],
"merge": true,
"meta": {
"dataSourceName": "Element event store",
"dataFormat": "parquet-remote",
"parquetPartitionColumn": "ts",
"parquetPartitionGranularity": "year/month/day"
},
"idempotencyKey": "element_event_store:2026-07-06T12:00:00Z"
}
| Field | Description |
|---|---|
dataSourceId | Target writable datasource id. The runtime must be granted datasource write capability by dashview-be. |
rows | One row dict or a list of row dicts. |
merge | Optional bool. Overrides uplink auto-merge for this request. |
forcedFilterHash | Optional cache variant. Usually omit so the default parquet cache is written. |
meta | Optional auto-create metadata such as dataSourceName, dataFormat, parquetPartitionColumn, and parquetPartitionGranularity. |
timeoutSeconds | Optional write timeout. |
idempotencyKey | Optional caller-supplied key for audit/idempotency. |
{
"ok": true,
"dataSourceId": "element_event_store",
"inserted": 1,
"parts": 1,
"uris": [
"gs://dashview-cache/.../part-00000.parquet"
],
"createdDataSource": false,
"merge": {
"enabled": true
}
}
def run():
result = dataSources.appendRows(
"element_event_store",
[{"ts": "2026-07-06T12:00:00Z", "status": "ok"}],
merge=True,
)
return {"inserted": result["inserted"]}