Parse an NQL statement
The same check as POST /nql/validate, open to any token and to callers with no token at all, so a
query editor can report problems as the user types. The response and error shapes are those of
/nql/validate.
With a bearer token the statement is checked against the datasets, access rules and views of the
token’s company, exactly as /nql/validate does, and the token needs no particular permission.
Without a token there is no company context. The statement is still parsed with the dialect of the
given data plane and type-checked, but it can only resolve tables that need no company, such as
narrative.rosetta_stone, and statements that write data (CREATE MATERIALIZED VIEW, INSERT,
UPDATE, DELETE, MERGE) are rejected with a 400 titled
Cannot validate certain queries when unauthentified.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A NQL query.
A dataplane represent where you would run the query. Your query get compiled to the SQL dialect that your data engine understands. If you leave it blank, your query will target Narrative's dataplane on AWS using Apache Spark. We currently support Snowflake and we plan to support other dataplanes in the future. See https://next.narrative.io/products/narrative-anywhere for more details.
Response
The statement is valid. The body is its AST, or an empty object for a MERGE statement, which has
no AST representation. See POST /nql/validate for worked examples.
The parsed statement as an AST. A MERGE statement has no AST representation and returns an empty
object instead, as does a statement whose AST could not be serialized.
"agg_function"The text of the query fragment this node was parsed from.
The function name as written, for example SUM or COUNT.
The alias given with AS. Only present on aliased nodes: select-list expressions, FROM items and
common table expressions. When it is present the node's nql is the full <expression> AS <alias> text.
The ALL or DISTINCT quantifier, or null when none was written.
all, distinct, null 
