[ https://issues.apache.org/jira/browse/HIVE-15729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16272564#comment-16272564 ]
Hive QA commented on HIVE-15729: -------------------------------- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m 0s{color} | {color:blue} Findbugs executables are not available. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 5m 56s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 59s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 33s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 54s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 19s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 34s{color} | {color:red} ql: The patch generated 2 new + 92 unchanged - 0 fixed = 94 total (was 92) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 56s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 12s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 12m 44s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus/dev-support/hive-personality.sh | | git revision | master / 2efb7d3 | | Default Java | 1.8.0_111 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-8056/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-8056/yetus.txt | | Powered by | Apache Yetus http://yetus.apache.org | This message was automatically generated. > Temporary table with LOCATION clause not removed after session ends > ------------------------------------------------------------------- > > Key: HIVE-15729 > URL: https://issues.apache.org/jira/browse/HIVE-15729 > Project: Hive > Issue Type: Bug > Affects Versions: 2.3.0 > Reporter: Marcus T > Assignee: 靳峥 > Fix For: 2.4.0 > > Attachments: HIVE-15729.01.patch, HIVE-15729.02.patch > > > When using CREATE TEMPORARY TABLE with a LOCATION clause, Hive doesn't remove > the created files when the session ends. > Steps to reproduce: > {noformat} > beeline > CREATE TEMPORARY TABLE this_gets_removed AS SELECT 'OK'; > CREATE TEMPORARY TABLE this_stays LOCATION '/tmp/this_stays' AS SELECT > 'BAD'; > !quit > hdfs dfs -ls -R "/tmp/hive/${USER}" "/tmp/this_stays" > {noformat} > Expected result: files and directories for {{this_gets_removed}} and > {{this_stays}} are removed. > Actual result: files and directories for {{this_gets_removed}} are removed, > files and directories for {{this_stays}} are still present. > Ideally, it would be great if the LOCATION clause worked with the TEMPORARY > clause. If they can't be made to work together, perhaps the LOCATION clause > should be illegal when using TEMPORARY. -- This message was sent by Atlassian JIRA (v6.4.14#64029)