hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21641) Llap external client returns decimal columns in different precision/scale as compared to beeline
Date Tue, 07 May 2019 08:58:00 GMT

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

Hive QA commented on HIVE-21641:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12968009/HIVE-21641.5.branch-3.patch

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

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

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'
2019-05-07 08:56:35.623
+ [[ -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-17148/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z branch-3 ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2019-05-07 08:56:35.627
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at ff98efa HIVE-21641: Llap external client returns decimal columns in different
precision/scale as compared to beeline (Shubham Chaurasia, via Gopal V)
+ git clean -f -d
Removing standalone-metastore/metastore-server/src/gen/
+ git checkout branch-3
Switched to branch 'branch-3'
Your branch is behind 'origin/branch-3' by 16 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
+ git reset --hard origin/branch-3
HEAD is now at 5344364 HIVE-21291: Restore historical way of handling timestamps in Avro while
keeping the new semantics at the same time (Karen Coppage, reviewed by Jesus Camacho Rodriguez)
+ git merge --ff-only origin/branch-3
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-05-07 08:56:40.137
+ rm -rf ../yetus_PreCommit-HIVE-Build-17148
+ mkdir ../yetus_PreCommit-HIVE-Build-17148
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-17148
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-17148/yetus
+ 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/parse/ParseUtils.java:551
error: repository lacks the necessary blob to fall back on 3-way merge.
error: ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java: patch does not apply
error: hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcGenericUDTFGetSplits.java: does
not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java: does not exist in index
error: src/test/java/org/apache/hive/jdbc/TestJdbcGenericUDTFGetSplits.java: does not exist
in index
error: java/org/apache/hadoop/hive/ql/parse/ParseUtils.java: does not exist in index
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-17148
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12968009 - PreCommit-HIVE-Build

> Llap external client returns decimal columns in different precision/scale as compared
to beeline
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21641
>                 URL: https://issues.apache.org/jira/browse/HIVE-21641
>             Project: Hive
>          Issue Type: Bug
>          Components: llap
>    Affects Versions: 3.1.1
>            Reporter: Shubham Chaurasia
>            Assignee: Shubham Chaurasia
>            Priority: Major
>              Labels: Branch3Candidate, pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21641.1.patch, HIVE-21641.2.patch, HIVE-21641.3.patch, HIVE-21641.4.patch,
HIVE-21641.5.branch-3.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Llap external client gives different precision/scale as compared to when the query is
executed beeline. Consider the following results:
> Query:
> {code} 
> select avg(ss_ext_sales_price) my_avg from store_sales;
> {code} 
> Result from Beeline
> {code} 
> +----------------------------+
> |           my_avg           |
> +----------------------------+
> | 37.8923531030581611189434  |
> +----------------------------+
> {code} 
> Result from Llap external client
> {code}
> +---------+
> |   my_avg|
> +---------+
> |37.892353|
> +---------+
> {code}
>  
> This is due to Driver(beeline path) calls [analyzeInternal()|https://github.com/apache/hive/blob/rel/release-3.1.1/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java#L328]
for getting result set schema which initializes [resultSchema|https://github.com/apache/hive/blob/rel/release-3.1.1/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L333]
after some more transformations as compared to llap-ext-client which calls [genLogicalPlan()|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java#L561]
> Replacing {{genLogicalPlan()}} by {{analyze()}} resolves this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message