[
https://issues.apache.org/jira/browse/HIVE-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766521#comment-13766521
]
Hive QA commented on HIVE-5272:
-------------------------------
{color:red}Overall{color}: -1 no tests executed
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12602901/HIVE-5272.1.patch.txt
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/717/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/717/console
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Tests failed with: NonZeroExitCodeException: Command 'bash
/data/hive-ptest/working/scratch/source-prep.sh' failed with exit status 1 and
output '+ [[ -n '' ]]
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m -Dhttp.proxyHost=localhost
-Dhttp.proxyPort=3128'
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m -Dhttp.proxyHost=localhost
-Dhttp.proxyPort=3128'
+ cd /data/hive-ptest/working/
+ tee /data/hive-ptest/logs/PreCommit-HIVE-Build-717/source-prep.txt
+ mkdir -p maven ivy
+ [[ svn = \s\v\n ]]
+ [[ -n '' ]]
+ [[ -d apache-svn-trunk-source ]]
+ [[ ! -d apache-svn-trunk-source/.svn ]]
+ [[ ! -d apache-svn-trunk-source ]]
+ cd apache-svn-trunk-source
+ svn revert -R .
Reverted 'ql/src/test/results/clientpositive/stats_partscan_1.q.out'
Reverted 'ql/src/test/queries/clientpositive/stats_partscan_1.q'
++ egrep -v '^X|^Performing status on external'
++ awk '{print $2}'
++ svn status --no-ignore
+ rm -rf build hcatalog/build hcatalog/core/build
hcatalog/storage-handlers/hbase/build hcatalog/server-extensions/build
hcatalog/webhcat/svr/build hcatalog/webhcat/java-client/build
hcatalog/hcatalog-pig-adapter/build common/src/gen
ql/src/test/results/clientpositive/stats_partscan_1_23.q.out
ql/src/test/queries/clientpositive/stats_partscan_1_23.q
+ svn update
Fetching external item into 'hcatalog/src/test/e2e/harness'
External at revision 1522961.
At revision 1522961.
+ patchCommandPath=/data/hive-ptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hive-ptest/working/scratch/build.patch
+ [[ -f /data/hive-ptest/working/scratch/build.patch ]]
+ chmod +x /data/hive-ptest/working/scratch/smart-apply-patch.sh
+ /data/hive-ptest/working/scratch/smart-apply-patch.sh
/data/hive-ptest/working/scratch/build.patch
The patch does not appear to apply with p0 to p2
+ exit 1
'
{noformat}
This message is automatically generated.
> Column statistics on a invalid column name results in
> IndexOutOfBoundsException
> -------------------------------------------------------------------------------
>
> Key: HIVE-5272
> URL: https://issues.apache.org/jira/browse/HIVE-5272
> Project: Hive
> Issue Type: Bug
> Components: Statistics
> Affects Versions: 0.13.0
> Reporter: Prasanth J
> Assignee: Prasanth J
> Labels: statistics
> Fix For: 0.13.0
>
> Attachments: HIVE-5272.1.patch.txt
>
>
> When invalid column name is specified for column statistics
> IndexOutOfBoundsException is thrown.
> {code}hive> analyze table customer_staging compute statistics for columns
> c_first_name, invalid_name, c_customer_sk;
> FAILED: IndexOutOfBoundsException Index: 2, Size: 1{code}
> If the invalid column name appears at first or last then
> INVALID_COLUMN_REFERENCE is thrown at query planning stage. But if the
> invalid column name appears somewhere in the middle of column lists then
> IndexOutOfBoundsException is thrown at semantic analysis step. The problem is
> with getTableColumnType() and getPartitionColumnType() methods. The following
> segment
> {code} for (int i=0; i <numCols; i++) {
> colName = colNames.get(i);
> for (FieldSchema col: cols) {
> if (colName.equalsIgnoreCase(col.getName())) {
> colTypes.add(i, new String(col.getType()));
> }
> }
> }{code}
> is the reason for it. If the invalid column names appears in the middle of
> column list then the equalsIgnoreCase() skips the invalid name and increments
> the i. Since the list is not initialized it results in exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira