Validate a SQL program by compiling it, without creating a pipeline or
building the pipeline binary. Reports SQL errors and warnings and the derived
schema and connectors. Set ir to also return the program IR (dataflow).
Note that this endpoint returns HTTP 200, regardless of whether validation
succeeds or fails. The validation result, including any compiler warnings and errors,
is encoded in the ValidateProgramResponse response body.
Request Body — REQUIREDThe SQL program to validate, an optional runtime version, and whether to return the IR |
|---|
ir booleanReturn the program IR (dataflow) in the response. false by default;
most callers only need to know whether the program is valid. |
program_code string — REQUIREDSQL program code to validate. |
runtime_version stringRuntime version to compile with: a version tag (vX.Y.Z) or a
40-character git SHA. If omitted, the platform's default runtime is used. |
| Responses |
|---|
200
Validation completed; the body reports success, SQL errors, or a system error | Schema — OPTIONAL |
|---|
undefinedOutcome of validating a SQL program. |
|
400
The requested runtime version is invalid | Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|
| Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|
503
The compiler service is unavailable | Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|
504
The compiler did not respond within the configured timeout | Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|