Yunhong Zheng created FLINK-29058:
-------------------------------------

             Summary: 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
             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)

Reply via email to