Description
ApproxQuantile overflows when number of rows exceeds 2.147B (max int32).
If you run ApproxQuantile on a dataframe with 3B rows of 1 to 3B and ask it for 1/6 quantiles, it should return [0.5B, 1B, 1.5B, 2B, 2.5B, 3B]. However, in the implementation of ApproxQuantile, it calls .toInt on the target rank, which overflows at 2.147B.