[
https://issues.apache.org/jira/browse/FLINK-29058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17582888#comment-17582888
]
Yunhong Zheng commented on FLINK-29058:
---------------------------------------
This Jira is realated to
[FLINK-28939|https://issues.apache.org/jira/browse/FLINK-28939]
> Analyze table xxx For columns will thrown error while encounter String type
> column with null value
> --------------------------------------------------------------------------------------------------
>
> Key: FLINK-29058
> URL: https://issues.apache.org/jira/browse/FLINK-29058
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.16.0
> Reporter: Yunhong Zheng
> Priority: Major
> Fix For: 1.16.0
>
>
> When String/varchar type column `a` have `null` value, `Analyze table xxx FOR
> ALL COLUMNS/ COLUMNS a` may throw error:
> {code:java}
> [ERROR] Could not execute SQL statement. Reason:
> org.apache.thrift.protocol.TProtocolException: Required field 'maxColLen' is
> unset! Struct:StringColumnStatsData(maxColLen:0, avgColLen:0.0, numNulls:1,
> numDVs:0) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)