(sql: string)
| 44 | let chReachable = false; |
| 45 | |
| 46 | async function explain(sql: string): Promise<void> { |
| 47 | // EXPLAIN runs the parser + analyzer and builds the query plan, which |
| 48 | // catches UNKNOWN_IDENTIFIER and AMBIGUOUS_IDENTIFIER. It does not execute. |
| 49 | await ch.command({ query: `EXPLAIN ${sql}` }); |
| 50 | } |
| 51 | |
| 52 | beforeAll(async () => { |
| 53 | // The chart service is chatty; mute log spam during the test run. |