You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by ehsan shams <eh...@gmail.com> on 2019/03/28 14:20:54 UTC

[Spark SQL]: looking for place operators apply on the dataset / dataframe

Hi

I would like to know where exactly(which class/function) spark sql will
apply the operators on dataset / dataframe rows.
For example by applying the following filter or groupby which class is
responsible for? And will iterate over the rows to do its operation?

Kind regards
Ehsan Shams

val df1 = sqlContext.read.format("csv").option("header",
"true").load("src/main/resources/Names.csv")
val df11 = df1.filter("County='Hessen'")
val df12 = df1.groupBy("County")

Re: [Spark SQL]: looking for place operators apply on the dataset / dataframe

Posted by Marco Gaido <ma...@gmail.com>.
Hi,

you can check your execution plan and you can find from there which *Exec
classes are used. Please notice that in case of wholeStageCodegen, its
children operators are executed inside the wholeStageCodegenExec.

Bests,
Marco

Il giorno gio 28 mar 2019 alle ore 15:21 ehsan shams <
ehsan.shams.rdma@gmail.com> ha scritto:

> Hi
>
> I would like to know where exactly(which class/function) spark sql will
> apply the operators on dataset / dataframe rows.
> For example by applying the following filter or groupby which class is
> responsible for? And will iterate over the rows to do its operation?
>
> Kind regards
> Ehsan Shams
>
> val df1 = sqlContext.read.format("csv").option("header", "true").load("src/main/resources/Names.csv")
> val df11 = df1.filter("County='Hessen'")
> val df12 = df1.groupBy("County")
>
>

Re: [Spark SQL]: looking for place operators apply on the dataset / dataframe

Posted by Sean Owen <sr...@gmail.com>.
I'd suggest loading the source in an IDE if you want to explore the
code base. It will let you answer this in one click.
Here it's Dataset, as a DataFrame is a Dataset[Row].

On Thu, Mar 28, 2019 at 9:21 AM ehsan shams <eh...@gmail.com> wrote:
>
> Hi
>
> I would like to know where exactly(which class/function) spark sql will apply the operators on dataset / dataframe rows.
> For example by applying the following filter or groupby which class is responsible for? And will iterate over the rows to do its operation?
>
> Kind regards
> Ehsan Shams
>
> val df1 = sqlContext.read.format("csv").option("header", "true").load("src/main/resources/Names.csv")
> val df11 = df1.filter("County='Hessen'")
> val df12 = df1.groupBy("County")

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org