[jira] [Assigned] (SPARK-34199) Block `count(table.*)` to follow ANSI standard and other SQL engines

2021-02-01 Thread Wenchen Fan (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-34199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan reassigned SPARK-34199:
---

Assignee: Linhong Liu

> Block `count(table.*)` to follow ANSI standard and other SQL engines
> 
>
> Key: SPARK-34199
> URL: https://issues.apache.org/jira/browse/SPARK-34199
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: Linhong Liu
>Assignee: Linhong Liu
>Priority: Major
>
> In spark, the count(table.*) may cause very weird result, for example:
> select count(*) from (select 1 as a, null as b) t;
> output: 1
> select count(t.*) from (select 1 as a, null as b) t;
> output: 0
>  
> After checking the ANSI standard, count(*) is always treated as count(1) 
> while count(t.*) is not allowed. What's more, this is also not allowed by 
> common databases, e.g. MySQL, oracle.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Assigned] (SPARK-34199) Block `count(table.*)` to follow ANSI standard and other SQL engines

2021-01-21 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-34199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-34199:


Assignee: Apache Spark

> Block `count(table.*)` to follow ANSI standard and other SQL engines
> 
>
> Key: SPARK-34199
> URL: https://issues.apache.org/jira/browse/SPARK-34199
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: Linhong Liu
>Assignee: Apache Spark
>Priority: Major
>
> In spark, the count(table.*) may cause very weird result, for example:
> select count(*) from (select 1 as a, null as b) t;
> output: 1
> select count(t.*) from (select 1 as a, null as b) t;
> output: 0
>  
> After checking the ANSI standard, count(*) is always treated as count(1) 
> while count(t.*) is not allowed. What's more, this is also not allowed by 
> common databases, e.g. MySQL, oracle.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Assigned] (SPARK-34199) Block `count(table.*)` to follow ANSI standard and other SQL engines

2021-01-21 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-34199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-34199:


Assignee: (was: Apache Spark)

> Block `count(table.*)` to follow ANSI standard and other SQL engines
> 
>
> Key: SPARK-34199
> URL: https://issues.apache.org/jira/browse/SPARK-34199
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: Linhong Liu
>Priority: Major
>
> In spark, the count(table.*) may cause very weird result, for example:
> select count(*) from (select 1 as a, null as b) t;
> output: 1
> select count(t.*) from (select 1 as a, null as b) t;
> output: 0
>  
> After checking the ANSI standard, count(*) is always treated as count(1) 
> while count(t.*) is not allowed. What's more, this is also not allowed by 
> common databases, e.g. MySQL, oracle.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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