Commit 7620a93
authored
* Fix #37736: Allow composite transforms to use implicit input chaining
When a composite transform has no explicit inputs/outputs on its
sub-transforms, automatically chain them similar to how 'chain' type
transforms work.
Added test_composite_implicit_input_chaining to verify the fix.
* Fix line-too-long lint error in yaml_transform.py
* Fix yapf formatting in yaml_transform.py
* Fix composite implicit input chaining logic
* Fix composite implicit input chaining - delete empty input from spec
* Fix composite implicit input - reference pipeline input directly
* Fix composite implicit input - reference pipeline input
* Revert "Fix composite implicit input - reference pipeline input"
This reverts commit ceb0ac1.
* Fix composite implicit input chaining from pipeline input
This fix addresses the issue where composite transforms with no explicit
input specification were failing to receive inputs from the pipeline.
Key changes:
1. Fixed has_explicit_io check to use is_empty() instead of just checking
key presence - this properly treats {} as 'no explicit input'
2. Added composite_has_input check to only do implicit chaining when
the composite has an input to chain from
3. Fixed inner_scope_inputs computation to use parent scope's inputs
when the composite has no explicit input
4. Fixed output handling to use is_empty() check (normalization sets {})
5. Fixed final return to correctly resolve scope inputs vs transform outputs
* Apply yapf formatting and fix pylint line length issues
* Address review: revert unnecessary variable assignment
1 parent 0afbdf6 commit 7620a93
2 files changed
Lines changed: 99 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
799 | 862 | | |
800 | 863 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
| 864 | + | |
805 | 865 | | |
806 | 866 | | |
807 | 867 | | |
| |||
814 | 874 | | |
815 | 875 | | |
816 | 876 | | |
817 | | - | |
| 877 | + | |
| 878 | + | |
818 | 879 | | |
819 | 880 | | |
820 | 881 | | |
| |||
826 | 887 | | |
827 | 888 | | |
828 | 889 | | |
| 890 | + | |
829 | 891 | | |
830 | 892 | | |
831 | 893 | | |
832 | 894 | | |
833 | 895 | | |
834 | 896 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
839 | 909 | | |
840 | 910 | | |
841 | 911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
125 | 145 | | |
126 | 146 | | |
127 | 147 | | |
| |||
0 commit comments