Commit 68d32ea
Saurabh Badenkal
Revert: cross join guardrail back to UserWarning (not ValidationError)
Principle: SDK should not be more restrictive than the server.
The server allows cartesian queries (FROM a, b) -- they work and
return results (capped at 5000). The SDK warns users but does not
block, because:
1. Small-table cartesian products are safe (3 rows * 3 rows = 9)
2. Server has its own resource governance (5000-row cap, timeouts)
3. Blocking what the server allows creates user frustration
Final guardrail design:
- ValidationError: INSERT/UPDATE/DELETE (server blocks too, but SDK
catches earlier with clearer message)
- UserWarning: FROM a, b (cartesian), LIKE '%value', SELECT * + JOIN
756 unit tests passing.1 parent 7096624 commit 68d32ea
2 files changed
Lines changed: 28 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
| 930 | + | |
| 931 | + | |
931 | 932 | | |
932 | | - | |
933 | | - | |
| 933 | + | |
| 934 | + | |
934 | 935 | | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
938 | | - | |
| 939 | + | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | | - | |
| 174 | + | |
172 | 175 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
179 | | - | |
| 184 | + | |
180 | 185 | | |
181 | | - | |
182 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | 193 | | |
| |||
0 commit comments