You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/09/29 02:05:20 UTC
[jira] [Resolved] (SPARK-17712) Incorrect result due to invalid
pushdown of data-independent filter beneath aggregate
[ https://issues.apache.org/jira/browse/SPARK-17712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herman van Hovell resolved SPARK-17712.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Resolved per Josh's PR.
> Incorrect result due to invalid pushdown of data-independent filter beneath aggregate
> -------------------------------------------------------------------------------------
>
> Key: SPARK-17712
> URL: https://issues.apache.org/jira/browse/SPARK-17712
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.6.2, 2.0.0, 2.0.2
> Reporter: Josh Rosen
> Assignee: Josh Rosen
> Priority: Minor
> Labels: correctness
> Fix For: 2.1.0
>
>
> Let {{diamonds}} be a non-empty table. The following two queries should both return no rows, but the first returns a single row:
> {code}
> SELECT
> 1
> FROM (
> SELECT
> count(*)
> FROM diamonds
> ) t1
> WHERE
> false
> {code}
> {code}
> SELECT
> 1
> FROM (
> SELECT
> *
> FROM diamonds
> ) t1
> WHERE
> false
> {code}
--
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