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: [email protected]
For additional commands, e-mail: [email protected]