Commit cddf4af
Jade Wang
test(csharp): detect STATIC ONLY rejection by message on REST/SEA (null SqlState)
d88ac32 broadened the StaticOnly_DirectSql probe's catch to AdbcException but
still keyed only on ex.SqlState. On REST/SEA the DatabricksException is built
by StatementExecutionClient with just a message, so SqlState is null and the
filter never matched — the E2E Tests (rest) merge-queue job kept failing on
StaticOnly_DirectSql_RuntimeAcceptsKeyword with SQLSTATE 42601 in the text.
Reuse DatabricksException.IsDescTableExtendedUnsupportedException() (which
checks SqlState then the "SQLSTATE: 42601/20000" message) for the REST case,
keeping the SqlState check for Thrift's HiveServer2Exception. Probe now skips
on pre-PR#198486 runtimes on both protocols.
Co-authored-by: Isaac1 parent 5390595 commit cddf4af
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
0 commit comments