[SPARK-4860][pyspark][sql] using Scala implementations of `sample()` and `takeSample()`