vtkJoinTable have bad behavior
vtkJoinTable
have several issues :
- we modify the input of this filter (when 2 tables have a column with the same name, the second table have his column renamed)
- the output will have all column of theses inputs even if theses columns were empty (except for primary column?) :
for this example:
Table1
Name | Age | Sex |
---|---|---|
Alex | 25 | M |
Beth | 41 | F |
Cory | 33 | M |
Table2
Name | Height(cm) | Weight(kg) |
---|---|---|
Cory | 184 | 88 |
Alex | 175 | 74 |
Beth | 168 | 70 |
This filter will output this table (parameters : Left Key Column : Age
Right Key Column : Height(cm)
Mode : Left
:
Age | Name | Name_1 | Sex | Weight(kg) |
---|---|---|---|---|
25 | Cory | M | 0 | |
33 | Beth | F | 0 | |
41 | Alex | M | 0 |
In this case, we should have something like :
Age | Name | Sex |
---|---|---|
25 | Cory | M |
33 | Beth | F |
41 | Alex | M |
FYI @francois.mazen