sas_fedsql_check
Checks a FedSQL SELECT before execution for subqueries pushed into CREATE TABLE that fail on SingleStore; warns when a derived-table rewrite is not possible and explains why.
Instructions
Before a FedSQL run (nothing runs): does the SELECT have a subquery FedSQL would push down with the CREATE
TABLE (fails on SingleStore libraries), and can the editor run it as a derived table instead? warn: it
can't (an ORDER BY on expressions) - message says why and how to rewrite it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "sas_fedsql_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |