Avoid unnecessary casting incompute_hist Why are the changes needed? the__bucketshould be integer by its nature, it was double just because of the output type ofBucketizerin MLlib (almost all ML implementations returns double in transformation). After reimplementing it with Spark SQL, it no lo...