You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2023/01/21 01:49:00 UTC
[jira] [Resolved] (SPARK-42099) Make `count(*)` work correctly
[ https://issues.apache.org/jira/browse/SPARK-42099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruifeng Zheng resolved SPARK-42099.
-----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 39622
[https://github.com/apache/spark/pull/39622]
> Make `count(*)` work correctly
> ------------------------------
>
> Key: SPARK-42099
> URL: https://issues.apache.org/jira/browse/SPARK-42099
> Project: Spark
> Issue Type: Sub-task
> Components: Connect, PySpark
> Affects Versions: 3.4.0
> Reporter: Ruifeng Zheng
> Assignee: Ruifeng Zheng
> Priority: Major
> Fix For: 3.4.0
>
>
> cdf.select(CF.count("*"), CF.count(cdf.alphabets)).collect()
> {code:java}
> pyspark.sql.connect.client.SparkConnectAnalysisException: [UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `*` cannot be resolved. Did you mean one of the following? [`alphabets`]
> Plan: 'Aggregate [unresolvedalias('count('*), None), count(alphabets#32) AS count(alphabets)#35L]
> +- Project [alphabets#30 AS alphabets#32]
> +- LocalRelation [alphabets#30]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org