Commit f2d44ae
authored
fix: fail typegen build when queries produce unknown result types (#254)
* Fail typegen build when queries produce unknown result types
When DESCRIBE QUERY fails, typegen silently generates `result: unknown`
and reports success, causing downstream TypeScript compilation errors.
Now typegen throws an error listing the failed queries, so the build
fails early with a clear message instead of producing unusable types.
Fixes #244
* Improve typegen error message with actionable debugging guidance
The error message now points users to the error codes printed above,
lists common causes, and suggests running the query directly in a SQL
editor against the specific warehouse to debug.1 parent afe5b7d commit f2d44ae
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
| |||
0 commit comments