Closed fiedsch closed 5 years ago
Fix the problem, that Augmentor::setRequiredColumns(array $colnames) also determines the order in which the augmented columns are output in Augmetor::augment($data)
Augmentor::setRequiredColumns(array $colnames)
Augmetor::augment($data)
See https://github.com/fiedsch/datamanagement/blob/master/src/Fiedsch/Data/Augmentation/Augmentor.php#L80
Solution might be to introduce something like
const KEY_COLORDER = 'column_output_order';
and
Augmentor::setOutputColumnOrder($an_array_of_column_names);
Additionally comparing the column names set by
Augmentor::setRequiredColumns($colnames);
Augmentor::setOutputColumnOrder($colnames);
might be a good idea.
Fix the problem, that
Augmentor::setRequiredColumns(array $colnames)
also determines the order in which the augmented columns are output inAugmetor::augment($data)
See https://github.com/fiedsch/datamanagement/blob/master/src/Fiedsch/Data/Augmentation/Augmentor.php#L80
Solution might be to introduce something like
and
Additionally comparing the column names set by
and
might be a good idea.