Commit 11f0576
committed
[SEA-NodeJS] Remove the dead queryTimeout deadline plumbing (kernel field gone)
Follow-on to making queryTimeout a no-op on SEA: now that the kernel's
`query_timeout_secs` field is removed (databricks/databricks-sql-kernel#140) and
SeaSessionBackend no longer passes a timeout, the SeaOperationBackend client-side
deadline is dead code. Remove it:
- `SeaOperationBackend`: drop the `queryTimeoutSecs` option, the `queryTimeoutMs`
field, and the async poll-loop deadline enforcement (the
`OperationStateError(Timeout)` + best-effort-cancel branch).
- Regenerated napi `.d.ts`: `ExecuteOptions` no longer carries `queryTimeoutSecs`.
- Tests: remove the obsolete client-side-deadline test; drop the `queryTimeoutSecs`
args from the `makeAsyncOp` / `makeSyncOp` helpers.
- Comment cleanups in SeaNativeLoader.
queryTimeout remains a no-op on SEA (SQL Warehouses use STATEMENT_TIMEOUT). SEA
unit suite 261 passing; eslint clean; e2e directResults (CREATE/close/cancel)
unaffected.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent 8f1b268 commit 11f0576
4 files changed
Lines changed: 15 additions & 95 deletions
File tree
- lib/sea
- native/sea
- tests/unit/sea
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 143 | | |
153 | 144 | | |
154 | 145 | | |
| |||
190 | 181 | | |
191 | 182 | | |
192 | 183 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 184 | | |
198 | 185 | | |
199 | 186 | | |
200 | 187 | | |
201 | 188 | | |
202 | 189 | | |
203 | | - | |
204 | 190 | | |
205 | 191 | | |
206 | 192 | | |
| |||
232 | 218 | | |
233 | 219 | | |
234 | 220 | | |
235 | | - | |
236 | 221 | | |
237 | 222 | | |
238 | 223 | | |
| |||
441 | 426 | | |
442 | 427 | | |
443 | 428 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 429 | | |
448 | 430 | | |
449 | 431 | | |
| |||
494 | 476 | | |
495 | 477 | | |
496 | 478 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
| 479 | + | |
| 480 | + | |
521 | 481 | | |
522 | 482 | | |
523 | 483 | | |
| |||
526 | 486 | | |
527 | 487 | | |
528 | 488 | | |
529 | | - | |
| 489 | + | |
530 | 490 | | |
531 | 491 | | |
532 | 492 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
| 912 | + | |
913 | 913 | | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | 1014 | | |
1031 | 1015 | | |
1032 | 1016 | | |
| |||
1052 | 1036 | | |
1053 | 1037 | | |
1054 | 1038 | | |
1055 | | - | |
| 1039 | + | |
1056 | 1040 | | |
1057 | 1041 | | |
1058 | 1042 | | |
1059 | 1043 | | |
1060 | | - | |
1061 | 1044 | | |
1062 | 1045 | | |
1063 | 1046 | | |
| |||
0 commit comments