yashmayya opened a new pull request, #16536:
URL: https://github.com/apache/pinot/pull/16536
- Sample requests and responses:
```
POST /validateMultiStageQuery {"sql": "SELECT invalidColumn FROM
invalidTable"}
{
"errorMessage": "From line 1, column 27 to line 1, column 38: Object
'invalidTable' not found",
"errorCode": "TABLE_DOES_NOT_EXIST",
"compiledSuccessfully": false
}
```
```
POST /validateMultiStageQuery {"sql": "SELECT * FROM myTable"}
{
"errorMessage": null,
"errorCode": null,
"compiledSuccessfully": true
}
```
```
POST /validateMultiStageQuery {"sql": "SELECT CAST('abc' AS INT)"}
{
"errorMessage": "Error optimizing query: Caught exception while invoking
method: cast with arguments: [abc, INT]: For input string: \"abc\"",
"errorCode": "QUERY_PLANNING",
"compiledSuccessfully": false
}
```
- This API can be useful for testing and during upgrades to ensure backward
compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]