cURL
curl --request POST \ --url https://api.example.com/api/semantic-models/sql/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sql": "<string>", "limit": 50 } '
{ "columns": [ "<string>" ], "rows": [ {} ], "row_count": 123, "truncated": false }
Preview the results of a SQL query.
Required Role: nx1_semantic_modeller or nx1_semantic_admin
The query runs as the current user (impersonated in Trino).
The access token received from the authorization server in the OAuth 2.0 flow.
Request to preview SQL execution.
SQL query to preview
Row limit
1 <= x <= 1000
SQL preview results
Response from SQL preview.
Whether results were truncated
Was this page helpful?