Commit f55151e
refactor(csharp): convert SEA statement metadata to async, fix CTS leak
- Convert all 7 statement metadata methods (GetCatalogs, GetSchemas,
GetTables, GetColumns, GetColumnsExtended, GetPrimaryKeys,
GetCrossReference) from sync to async with CancellationToken
- Convert ExecuteMetadataCommand → ExecuteMetadataCommandAsync
- Use TraceActivityAsync + await ExecuteMetadataSqlAsync instead of
sync ExecuteMetadataSql wrapper (eliminates nested sync-over-async)
- Propagate CancellationToken from ExecuteQueryAsync through the
entire metadata chain (matches Thrift pattern)
- Fix CancellationTokenSource leak: CreateMetadataTimeoutToken →
CreateMetadataTimeoutCts returns disposable CTS; callers use 'using'
- Silently ignore readonly statement options (PollTimeMilliseconds,
BatchSize, BatchSizeStopCondition, QueryTimeoutSeconds) to avoid
NotImplemented exceptions in PowerBI compatibility
- Move Show*Command classes to MetadataCommands/ subfolder
- Fix test using directive for new MetadataCommands namespace
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0ce7a95 commit f55151e
File tree
12 files changed
+163
-155
lines changed- csharp
- src
- Result
- StatementExecution
- MetadataCommands
- test/Unit/StatementExecution
12 files changed
+163
-155
lines changedSubmodule hiveserver2 updated from edab9f8 to ae2dedf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 88 | + | |
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 25 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | | - | |
| 399 | + | |
| 400 | + | |
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
| |||
451 | 454 | | |
452 | 455 | | |
453 | 456 | | |
454 | | - | |
| 457 | + | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
458 | | - | |
| 461 | + | |
459 | 462 | | |
460 | 463 | | |
461 | 464 | | |
| |||
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
491 | | - | |
| 494 | + | |
492 | 495 | | |
493 | | - | |
494 | 496 | | |
495 | | - | |
496 | | - | |
| 497 | + | |
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
| |||
508 | 509 | | |
509 | 510 | | |
510 | 511 | | |
511 | | - | |
| 512 | + | |
512 | 513 | | |
513 | | - | |
514 | 514 | | |
515 | | - | |
516 | | - | |
| 515 | + | |
517 | 516 | | |
518 | 517 | | |
519 | 518 | | |
| |||
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
540 | | - | |
| 539 | + | |
541 | 540 | | |
542 | | - | |
543 | 541 | | |
544 | | - | |
545 | | - | |
| 542 | + | |
546 | 543 | | |
547 | 544 | | |
548 | 545 | | |
| |||
577 | 574 | | |
578 | 575 | | |
579 | 576 | | |
580 | | - | |
| 577 | + | |
| 578 | + | |
581 | 579 | | |
582 | | - | |
583 | 580 | | |
584 | | - | |
585 | | - | |
| 581 | + | |
586 | 582 | | |
587 | 583 | | |
588 | 584 | | |
| |||
659 | 655 | | |
660 | 656 | | |
661 | 657 | | |
662 | | - | |
| 658 | + | |
663 | 659 | | |
664 | 660 | | |
665 | 661 | | |
666 | 662 | | |
667 | 663 | | |
668 | | - | |
| 664 | + | |
669 | 665 | | |
670 | 666 | | |
671 | 667 | | |
672 | 668 | | |
673 | 669 | | |
674 | | - | |
| 670 | + | |
675 | 671 | | |
676 | 672 | | |
677 | 673 | | |
678 | 674 | | |
679 | 675 | | |
680 | 676 | | |
681 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
682 | 683 | | |
683 | | - | |
684 | | - | |
| 684 | + | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
| |||
0 commit comments