Commit 68a2416
feat: expose SessionContext.copied_config and parse_capacity_limit
Adds two small additions to SessionContext that mirror upstream:
- copied_config(): returns a copy of the active SessionConfig wrapped
in the existing SessionConfig Python class. Useful when callers want
to seed a new context from another context's settings, or inspect
the current configuration without sharing mutable state.
- parse_capacity_limit(config_name, limit): static helper that parses
size strings like "100M", "1.5G", "512K", or "0" into a byte count.
Useful when configuring a RuntimeEnvBuilder from human-friendly
inputs. Wraps SessionContext::parse_capacity_limit; the deprecated
parse_memory_limit is intentionally not exposed.
Three other items from the same gap cluster (runtime_env,
copied_table_options, the deprecated parse_memory_limit) are not
included here. The first two would require wrapping new Rust types
(RuntimeEnv, TableOptions) whose surface is much larger than the
accessors themselves; the third is deprecated upstream. Those are
filed as separate follow-up issues.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d021e6a commit 68a2416
2 files changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1165 | 1179 | | |
1166 | 1180 | | |
1167 | 1181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1509 | 1548 | | |
1510 | 1549 | | |
1511 | 1550 | | |
| |||
0 commit comments