i.e. the order of columns "all" and "vintage" got swapped. This appears to be significant, as the spark tests in scala consider dataframes of product,all,vintage different to dataframes product,vintage,all.
The solution to get the tests working was to swap the order of the fields in the record, which suggests they may be sorted alphabetically somewhere.
Following discussion, maintaining the ordering of columns is not important. If this becomes a problem for tests then the tests should stop being sensitive to changes in ordering.
When working on aggregation filters, I had an example,
which was transpiled into
i.e. the order of columns "all" and "vintage" got swapped. This appears to be significant, as the spark tests in scala consider dataframes of
product,all,vintage
different to dataframesproduct,vintage,all
.The solution to get the tests working was to swap the order of the fields in the record, which suggests they may be sorted alphabetically somewhere.