Nikola Mandic created SPARK-48698:
-------------------------------------

             Summary: Support analyze column stats for tables with collated 
columns
                 Key: SPARK-48698
                 URL: https://issues.apache.org/jira/browse/SPARK-48698
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Nikola Mandic


Following sequence fails:
{code:java}
> create table t(s string collate utf8_lcase) using parquet;
> insert into t values ('A');
> analyze table t compute statistics for all columns;
[UNSUPPORTED_FEATURE.ANALYZE_UNSUPPORTED_COLUMN_TYPE] The feature is not 
supported: The ANALYZE TABLE FOR COLUMNS command does not support the type 
"STRING COLLATE UTF8_LCASE" of the column `s` in the table 
`spark_catalog`.`default`.`t`. SQLSTATE: 0A000
 {code}
Users should be able to run ANALYZE commands on tables which have columns with 
collated type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to