You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2017/11/08 12:50:00 UTC

[jira] [Commented] (HIVE-18005) Improve size estimation for array() to be not 0

    [ https://issues.apache.org/jira/browse/HIVE-18005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243833#comment-16243833 ] 

Zoltan Haindrich commented on HIVE-18005:
-----------------------------------------

possible cause or related: {{StatsUtils.getDataSizeFromColumnStats}}
sizeof shouldn't be 0 if a column is found



> Improve size estimation for array() to be not 0
> -----------------------------------------------
>
>                 Key: HIVE-18005
>                 URL: https://issues.apache.org/jira/browse/HIVE-18005
>             Project: Hive
>          Issue Type: Bug
>          Components: Statistics
>            Reporter: Zoltan Haindrich
>
> happens only in case the array is not from a column; and the array contains no column references
> {code}
> EXPLAIN
> SELECT sort_array(array("b", "d", "c", "a")),array("1","2") FROM t
> ...
>              Statistics: Num rows: 1 Data size: 0 Basic stats: COMPLETE Column stats: COMPLETE
>              ListSink
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)