/api/ee/transform

POST /api/ee/transform/extract-columns

Extract column names from an MBQL query without executing it.

Compiles the query to native SQL using [[qp.compile/compile-with-inline-parameters]], which handles parameterized queries with template tags. Then extracts column names using PreparedStatement metadata.

Returns a map with a :columns key containing a vector of column names (strings). If extraction fails, returns nil for :columns.

post/api/ee/transform/extract-columns

Request body

Response

Successful response

Changes