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 2025/12/15 08:26:00 UTC

[jira] [Updated] (SPARK-54691) df.groupby.agg fails with CANNOT_RESOLVE_DATAFRAME_COLUMN

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

Ruifeng Zheng updated SPARK-54691:
----------------------------------
    Summary: df.groupby.agg fails with CANNOT_RESOLVE_DATAFRAME_COLUMN  (was: df.groupby.agg fails with )

> df.groupby.agg fails with CANNOT_RESOLVE_DATAFRAME_COLUMN
> ---------------------------------------------------------
>
>                 Key: SPARK-54691
>                 URL: https://issues.apache.org/jira/browse/SPARK-54691
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect, SQL
>    Affects Versions: 4.1.0, 4.2.0
>            Reporter: Ruifeng Zheng
>            Priority: Major
>
> some delta queries fail with 4.1+
> {code:java}
> df = spark.read.option("readChangeFeed", True).option("startingVersion", 0).table("sample_table")
>  
>  
> df.groupby('_commit_version').count().show() <- fail with [CANNOT_RESOLVE_DATAFRAME_COLUMN] Cannot resolve dataframe column "_commit_version". It's probably because of illegal references like `df1.select(df2.col("a"))`. SQLSTATE: 42704{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