Commit 6afe474
committed
refactor: Eliminate code duplication in expand_record method
Unified the wildcard and non-wildcard branches by collecting all arrays
to process into a single list, then using one common loop for expansion.
This eliminates the duplicated item iteration and record expansion logic.
All 29 tests passing. MyPy check passes.
Co-Authored-By: unknown <>1 parent c6448e5 commit 6afe474
File tree
1 file changed
+12
-20
lines changed- airbyte_cdk/sources/declarative/expanders
1 file changed
+12
-20
lines changedLines changed: 12 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 75 | + | |
88 | 76 | | |
89 | 77 | | |
90 | | - | |
| 78 | + | |
91 | 79 | | |
92 | 80 | | |
93 | | - | |
94 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
95 | 84 | | |
96 | 85 | | |
97 | | - | |
98 | | - | |
| 86 | + | |
| 87 | + | |
99 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
100 | 92 | | |
101 | 93 | | |
102 | 94 | | |
| |||
0 commit comments