You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Abhijit Bhole (JIRA)" <ji...@apache.org> on 2017/07/13 13:52:00 UTC
[jira] [Updated] (SPARK-21034) Filter not getting pushed down the
groupBy clause when first() or last() aggregate function is used
[ https://issues.apache.org/jira/browse/SPARK-21034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abhijit Bhole updated SPARK-21034:
----------------------------------
Affects Version/s: 2.2.0
> Filter not getting pushed down the groupBy clause when first() or last() aggregate function is used
> ---------------------------------------------------------------------------------------------------
>
> Key: SPARK-21034
> URL: https://issues.apache.org/jira/browse/SPARK-21034
> Project: Spark
> Issue Type: Bug
> Components: Optimizer
> Affects Versions: 2.1.1, 2.2.0
> Reporter: Abhijit Bhole
>
> For example, in my sample code -
> seriesUserMetricsDF = (userSeriesGameMetricsDF
> .groupBy(['companyId', "seriesId", 'userId'])
> .agg(
> F.last('invitedOn').alias('invitedOn'),
> F.sum('score').alias('score')))
> seriesUserMetricsDF.where(F.col('seriesId') == 12345)
> the seriesId filter does not get pushed down to userSeriesGameMetricsDF. In Spark 2.1.0 it does.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org