Is there any way to get the planning time via REST API

Is there any way to get the planning time for a SQL via REST API? Then we could stop some query if it need long time.

@popejune

Have you tried adding “explain plan for” before the SQL?

EXPLAIN PLAN FOR SELECT * FROM “zips.json”

Use POST SQL to run the SQL via API http://docs.dremio.com/rest-api/sql/post-sql.html

1 Like