Repository navigation
Commit 4040d1b
catalog: add estimated_object_count to SchemaInfo for client-side eager-load gate
Adds a nullable ``dict[str, int]`` map keyed by the same names the C++
extension uses for set-cache instrumentation (table, view, scalar_function,
aggregate_function, table_function, macro, index). Workers populate it to
let the client decide between bulk LoadEntries and per-name RPCs without an
extra round trip. Both the declarative ``Schema.to_schema_info`` helper and
the InMemoryCatalog test fixture populate it from their declared / actual
population. Missing field / missing keys are interpreted client-side as 1
(eager-load), so existing workers don't change behavior unless they opt in.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3a5e8dd commit 4040d1b
3 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
320 | 329 | | |
321 | 330 | | |
| 331 | + | |
322 | 332 | | |
323 | 333 | | |
324 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
659 | 669 | | |
660 | 670 | | |
661 | 671 | | |
662 | 672 | | |
663 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
664 | 681 | | |
665 | 682 | | |
666 | 683 | | |
| |||
0 commit comments