You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/08/20 07:53:46 UTC
[jira] [Comment Edited] (SPARK-10100) AggregateFunction2's Max is
slower than AggregateExpression1's MaxFunction
[ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org