You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2017/09/03 06:35:00 UTC

[jira] [Commented] (HIVE-17406) UDAF throws IllegalArgumentException for a complex input when column stats is not provided

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

Hive QA commented on HIVE-17406:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12884273/HIVE-17406.1.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6660/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6660/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6660/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ date '+%Y-%m-%d %T.%3N'
2017-09-03 06:34:13.848
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-6660/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2017-09-03 06:34:13.851
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at e3c71b0 HIVE-17405: HoS DPP ConstantPropagate should use ConstantPropagateOption.SHORTCUT (Sahil Takiar, reviewed by Rui Li)
+ git clean -f -d
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at e3c71b0 HIVE-17405: HoS DPP ConstantPropagate should use ConstantPropagateOption.SHORTCUT (Sahil Takiar, reviewed by Rui Li)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2017-09-03 06:34:14.324
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java:1153
error: ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java: patch does not apply
The patch does not appear to apply with p0, p1, or p2
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12884273 - PreCommit-HIVE-Build

> UDAF throws IllegalArgumentException for a complex input when column stats is not provided
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-17406
>                 URL: https://issues.apache.org/jira/browse/HIVE-17406
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 2.3.0
>            Reporter: Makoto Yui
>            Assignee: Zoltan Haindrich
>            Priority: Minor
>         Attachments: HIVE-17406.1.patch
>
>
> I found that UDAF (both generic and non-generic UDAF w/ or w/o estimable) of Hive v2.3.0 throws IllegalArgumentException for a complex input when column stats is not provided. 
> The exception does not occur in v2.1.0.
> https://github.com/apache/hive/blob/34eebff194e81180202d198200e84058c4910d95/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java#L1156
> {code:sql}
> select version();
> > 2.3.0-amzn-0 rcb482944667f96f43c89932dcb66d61ee7e4ac1d
> with t2 as ( 
>   select array(1,2) as c1 
>   union all 
>   select array(2,3) as c1
> ) 
> select collect_list(c1) from t2;
> > FAILED: IllegalArgumentException Size requested for unknown type: java.util.Collection
> {code}
> On the other hand, it succeeds when colunm stats is provided as follows:
> {code:sql}
> create table t1 as (
>   select array(1,2) as c1 
>   union all
>   select array(2,3) as c1
> );
> > select collect_list(c1) from t1;
> [[1,2],[2,3]]
> > desc formatted t1;
> ...       
> Table Parameters:                
>         COLUMN_STATS_ACCURATE   {\"BASIC_STATS\":\"true\"}
>         numFiles                2                   
>         numRows                 2                   
>         rawDataSize             6                   
>         totalSize               8                   
>         transient_lastDdlTime   1503990290
> {code}



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