Commit 2811fb4
committed
refactor(bulk): map parser columns via named COLUMN index table
Replace the inline magic indices (fields[8]/[9]/[10]) in parseBulkFile
with a single COLUMN map so the column->field layout has one source of
truth in code. The non-contiguous jumps (3 -> 8, skipping reserved cols
4-7) are now self-documenting and a future column shift only needs one
edit. Behavior unchanged: indices map 1:1 to the previous positions.1 parent ca34c72 commit 2811fb4
1 file changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
98 | 113 | | |
99 | 114 | | |
100 | 115 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
108 | 123 | | |
109 | 124 | | |
110 | 125 | | |
| |||
0 commit comments