Commit bc8e3bd
fix: handle tier prefixes in Schema.get_table and __contains__
The get_table(), __getitem__, and __contains__ methods now auto-detect
table tier prefixes (Manual: none, Lookup: #, Imported: _, Computed: __).
This allows users to access tables by their base name without knowing
the tier prefix:
- schema.get_table("experiment") finds "_experiment" (Imported)
- schema["Subject"] finds "#subject" (Lookup)
- "Experiment" in schema returns True
Added _find_table_name() helper that checks exact match first, then
tries each tier prefix.
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 405f10e commit bc8e3bd
1 file changed
+35
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
631 | 658 | | |
632 | 659 | | |
633 | 660 | | |
| |||
640 | 667 | | |
641 | 668 | | |
642 | 669 | | |
| 670 | + | |
643 | 671 | | |
644 | 672 | | |
645 | 673 | | |
| |||
659 | 687 | | |
660 | 688 | | |
661 | 689 | | |
662 | | - | |
663 | | - | |
664 | 690 | | |
665 | | - | |
666 | 691 | | |
667 | 692 | | |
668 | | - | |
669 | | - | |
670 | | - | |
| 693 | + | |
| 694 | + | |
671 | 695 | | |
672 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
673 | 699 | | |
674 | 700 | | |
675 | 701 | | |
| |||
721 | 747 | | |
722 | 748 | | |
723 | 749 | | |
| 750 | + | |
724 | 751 | | |
725 | 752 | | |
726 | 753 | | |
| |||
732 | 759 | | |
733 | 760 | | |
734 | 761 | | |
735 | | - | |
736 | | - | |
737 | 762 | | |
738 | 763 | | |
739 | | - | |
| 764 | + | |
740 | 765 | | |
741 | 766 | | |
742 | 767 | | |
| |||
0 commit comments