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/17 06:38:00 UTC

[jira] [Created] (SPARK-42099) Make `count(*)` work correctly

Ruifeng Zheng created SPARK-42099:
-------------------------------------

             Summary: 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


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