Skip to main content

read_data_product

Function read_data_product 

Source
async fn read_data_product(
    client: &mut AuthedClient,
    name: &str,
    limit: u32,
    cluster_override: Option<&str>,
    max_response_size: usize,
) -> Result<McpResult, McpRequestError>
Expand description

Read rows from a data product. Issues a single read-only query.

When cluster_override is provided, sets the cluster explicitly. Otherwise the query runs on the session’s default cluster.

The name is expected to come from get_data_products() / get_data_product_details(). The query runs inside a READ ONLY transaction, preventing mutations.