Commit 311f039
Skip type hint path when no complex type columns exist
Check column metadata types against _COMPLEX_TYPES (array, map, row,
struct) in _process_metadata. Only compute and store column type hints
when the result set actually contains complex type columns with
matching hints. This eliminates all hint-related overhead in the hot
loop for queries that return only scalar types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2ff410c commit 311f039
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
425 | 429 | | |
426 | 430 | | |
427 | 431 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
431 | 440 | | |
| 441 | + | |
| 442 | + | |
432 | 443 | | |
433 | 444 | | |
434 | 445 | | |
| |||
0 commit comments