Revision 1355
Added by Aaron Marcuse-Kubitza over 12 years ago
join | ||
---|---|---|
31 | 31 |
writer = csv.writer(sys.stdout) |
32 | 32 |
map_0_cols = reader.next() |
33 | 33 |
if not map_0_cols[1] == map_1_cols[0]: raise SystemExit('Map error: ' |
34 |
'Map 0 output column name doesn\'t match map 1 input column name') |
|
34 |
'Map 0 output column name "'+map_0_cols[1] |
|
35 |
+'" doesn\'t match map 1 input column name "'+map_1_cols[0]+'"') |
|
35 | 36 |
writer.writerow(maps.merge_mappings(map_0_cols, map_1_cols)) |
36 | 37 |
for row in reader: |
37 | 38 |
if row[1] != '': |
Also available in: Unified diff
join: In error message when map column names don't match, include the actual column names