You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2025/09/11 14:21:00 UTC

[jira] [Created] (SPARK-53554) Fix sum_distinct in spark-connect-rust

Kousuke Saruta created SPARK-53554:
--------------------------------------

             Summary: Fix sum_distinct in spark-connect-rust
                 Key: SPARK-53554
                 URL: https://issues.apache.org/jira/browse/SPARK-53554
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-0.1.0
            Reporter: Kousuke Saruta


In the current spark-connect-rust, sum_distinct doesn't work correctly.
If we run the following code,

{code}
let df = spark
    .sql("SELECT * FROM VALUES (1), (2), (3), (1), (2), (3) AS data(value)")
    .await?;
df.select([sum_distinct(col("value")).alias("sum")])
    .show(None, None, None)
    .await?;
{code}

We will get the following error.
{code}
Error: AnalysisException("[UNRESOLVED_ROUTINE] Cannot resolve routine `sum_distinct` on search path [`system`.`builtin`, `system`.`session`, `spark_catalog`.`default`]. SQLSTATE: 42883")
{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