get_data_model

Function get_data_model 

Source
pub async fn get_data_model(
    __arg0: State<AppState>,
    __arg1: Query<DataModelQuery>,
    __arg2: Path<String>,
) -> Result<Response, ApiError>
Expand description

GET /api/v1/parse/data-model/:cache_key

Fetch the data model for a previously parsed file.

?data_model_entities=rooted (#6034) fetches the rooted-only variant, which only a parse sent with the same parameter writes. Without it, the full table. Neither ever answers for the other.

Response:

  • 200: Data model Parquet binary
  • 202: A fill IS running for this key right now (client should retry)
  • 404: Nothing cached for this key and nothing filling it (issue #5129: /parse/parquet/optimized never triggers a data-model write, so before this a client that called only that route polled 202 forever – the response read as “still processing” for a key nothing was processing)