Commit 1718068
committed
- #5: Eliminate intermediate Object[] and ArrowType[] arrays in parameter
binding; build schema fields directly in a single pass and read values
from the original params array during vector population.
- #6: Close AdbcStatement eagerly after executeQuery() returns the reader.
The ArrowReader holds its own Flight stream and no longer needs the
statement, freeing server-side resources immediately instead of waiting
for slow consumers.
- #7: Create auth middleware once per RPC in HeaderAuthMiddlewareFactory
instead of re-creating it in each callback (onBeforeSendingHeaders,
onHeadersReceived, onCallCompleted). Eliminates 2 redundant allocations
per RPC.
- #8: Replace message.contains() string scanning in ADBC retry logic with
AdbcException.getStatus() switch on AdbcStatusCode enum (IO, UNKNOWN,
TIMEOUT, INTERNAL). Avoids string allocation and scanning on the
exception hot path.
1 parent 137d129 commit 1718068
2 files changed
Lines changed: 35 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
| |||
623 | 628 | | |
624 | 629 | | |
625 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
626 | 641 | | |
627 | 642 | | |
628 | 643 | | |
| |||
642 | 657 | | |
643 | 658 | | |
644 | 659 | | |
645 | | - | |
646 | | - | |
647 | 660 | | |
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
651 | 664 | | |
652 | 665 | | |
653 | 666 | | |
654 | | - | |
655 | 667 | | |
656 | | - | |
657 | | - | |
658 | 668 | | |
| 669 | + | |
| 670 | + | |
659 | 671 | | |
660 | 672 | | |
661 | | - | |
| 673 | + | |
662 | 674 | | |
663 | 675 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 676 | + | |
670 | 677 | | |
671 | | - | |
672 | | - | |
| 678 | + | |
673 | 679 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
690 | 690 | | |
| 691 | + | |
| 692 | + | |
691 | 693 | | |
692 | | - | |
| 694 | + | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
| |||
0 commit comments