Re: Is there a difference between these aggregations

2017-07-24 Thread Aseem Bansal
> *De :* Aseem Bansal <asmbans...@gmail.com> > *Envoyé :* lundi 24 juillet 2017 13:34 > *À :* user > *Objet :* Is there a difference between these aggregations > > If I want to aggregate mean and subtract from my column I can do either of > the following in Spark 2.

RE: Is there a difference between these aggregations

2017-07-24 Thread yohann jardin
mean and avg functions. De : Aseem Bansal <asmbans...@gmail.com> Envoyé : lundi 24 juillet 2017 13:34 À : user Objet : Is there a difference between these aggregations If I want to aggregate mean and subtract from my column I can do either of the fol

Is there a difference between these aggregations

2017-07-24 Thread Aseem Bansal
If I want to aggregate mean and subtract from my column I can do either of the following in Spark 2.1.0 Java API. Is there any difference between these? Couldn't find anything from reading the docs. dataset.select(mean("mycol")) dataset.agg(mean("mycol")) dataset.select(avg("mycol"))