semantic layer sql

Hi, I wanted to know if when using the api is it possible to get the sql that is generated by the semantic layer without running the sql.

I have tried it with graphql apis.
Here’s the link:

Hi! In case someone still has that question, it’s now possible to do with GraphQL:

To add a small clarification: the compile-only route is the GraphQL API, not the JDBC endpoint. JDBC is for executing Semantic Layer queries, while the GraphQL compile call returns the generated SQL without sending it to the warehouse. So if the goal is just to inspect or validate the SQL, use the GraphQL compile call; use JDBC/query execution only when you actually need results.