Fix analyze for array type columns
`hashDatum` expects the incoming oid for the array types to be ANYARRAYOID, else it will flag them as unsupported. While performing the MCV calcuation on the array type columns, we were passing the specific array oid, i.e character array oid for char array type column, due to which `hashdatum` was marking them as not supported. However, we should pass ANYARRAYOID if the column is an array type. This commit fixes the issue. Also, relevant test cases are added.
Showing
想要评论请 注册 或 登录