[ 
https://issues.apache.org/jira/browse/SPARK-10100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704322#comment-14704322
 ] 

Yin Huai edited comment on SPARK-10100 at 8/20/15 5:53 AM:
-----------------------------------------------------------

The dataset I created has 11 columns and 20000 groups. The query was applying 
10 max functions
{code}
sqlContext.sql("""
  select
    i,
    max(j1),
    max(j2),
    max(j3),
    max(j4),
    max(j5),
    max(j6),
    max(j7),
    max(j8),
    max(j9),
    max(j10)
  from testAgg
  group by i""")
{code}
In my laptop, 1.5 is about 5% slower than 1.4.


was (Author: yhuai):
The dataset I created has 11 columns and 20000 groups. The query was applying 
10 max functions
{code}
sqlContext.sql("""
  select
    i,
    sum(j1),
    sum(j2),
    sum(j3),
    sum(j4),
    sum(j5),
    sum(j6),
    sum(j7),
    sum(j8),
    sum(j9),
    sum(j10)
  from testAgg
  group by i""")
{code}
In my laptop, 1.5 is about 5% slower than 1.4.

> AggregateFunction2's Max is slower than AggregateExpression1's MaxFunction
> --------------------------------------------------------------------------
>
>                 Key: SPARK-10100
>                 URL: https://issues.apache.org/jira/browse/SPARK-10100
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Yin Huai
>            Assignee: Herman van Hovell
>         Attachments: SPARK-10100.perf.test.scala
>
>
> Looks like Max (probably Min) implemented based on AggregateFunction2 is 
> slower than the old MaxFunction.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to