Preserve the order of the rows in the dataframe if onlyDistinct is set to true
Preserve the order of the rows in the dataframe if onlyDistinct is set to true