[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16989656#comment-16989656 ] Aditya Shah commented on HIVE-22582: [~pvary] no failures, can you please merge? Thanks! > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > at java.lang.String.substring(String.java:1967) > at > org.apache.hadoop.hive.ql.io.AcidUtils.parsedDelta(AcidUtils.java:1128) > at > org.apache.hadoop.hive.ql.io.AcidUtils$ParsedDeltaLight.parse(AcidUtils.java:921) > at > org.apache.hadoop.hive.ql.io.AcidUtils.getLogicalLength(AcidUtils.java:2084) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$BISplitStrategy.getSplits(OrcInputFormat.java:1115) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1905) > ... 55 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16989354#comment-16989354 ] Hive QA commented on HIVE-22582: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12987573/HIVE-22582.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 17758 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/19765/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/19765/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-19765/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12987573 - PreCommit-HIVE-Build > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > at java.lang.String.substring(String.java:1967) > at > org.apache.hadoop.hive.ql.io.AcidUtils.parsedDelta(AcidUtils.java:1128) > at > org.apache.hadoop.hive.ql.io.AcidUtils$ParsedDeltaLight.parse(AcidUtils.java:921) > at > org.apache.hadoop.hive.ql.io.AcidUtils.getLogicalLength(AcidUtils.java:2084) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$BISplitStrategy.getSplits(OrcInputFormat.java:1115) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1905) > ... 55 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16989323#comment-16989323 ] Hive QA commented on HIVE-22582: | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {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} 9m 18s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 7s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 42s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 18s{color} | {color:blue} ql in master has 1532 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 3s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 29s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 42s{color} | {color:green} the patch passed {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} findbugs {color} | {color:green} 4m 14s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 2s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 15s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 25m 52s{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.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-19765/dev-support/hive-personality.sh | | git revision | master / 74ae418 | | Default Java | 1.8.0_111 | | findbugs | v3.0.1 | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-19765/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.
[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988726#comment-16988726 ] Peter Vary commented on HIVE-22582: --- +1 > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > at java.lang.String.substring(String.java:1967) > at > org.apache.hadoop.hive.ql.io.AcidUtils.parsedDelta(AcidUtils.java:1128) > at > org.apache.hadoop.hive.ql.io.AcidUtils$ParsedDeltaLight.parse(AcidUtils.java:921) > at > org.apache.hadoop.hive.ql.io.AcidUtils.getLogicalLength(AcidUtils.java:2084) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$BISplitStrategy.getSplits(OrcInputFormat.java:1115) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1905) > ... 55 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988684#comment-16988684 ] Laszlo Pinter commented on HIVE-22582: -- +1 (non-binding) > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > at java.lang.String.substring(String.java:1967) > at > org.apache.hadoop.hive.ql.io.AcidUtils.parsedDelta(AcidUtils.java:1128) > at > org.apache.hadoop.hive.ql.io.AcidUtils$ParsedDeltaLight.parse(AcidUtils.java:921) > at > org.apache.hadoop.hive.ql.io.AcidUtils.getLogicalLength(AcidUtils.java:2084) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$BISplitStrategy.getSplits(OrcInputFormat.java:1115) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1905) > ... 55 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (HIVE-22582) Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used
[ https://issues.apache.org/jira/browse/HIVE-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988677#comment-16988677 ] Aditya Shah commented on HIVE-22582: [~lpinter] [~szita] Can you please review? Thanks! > Avoid reading table as ACID when table name is starting with "delta" , but > table is not transactional and BI Split Strategy is used > --- > > Key: HIVE-22582 > URL: https://issues.apache.org/jira/browse/HIVE-22582 > Project: Hive > Issue Type: Bug >Reporter: Aditya Shah >Assignee: Aditya Shah >Priority: Major > Attachments: HIVE-22582.patch > > > The issue is fixed in HIVE-22473 but missed a check for BI Split Strategy. > Steps to reproduce: > {code:java} > set hive.exec.orc.split.strategy=BI; > create table delta_result (a int) stored as orc > tblproperties('transactional'='false'); > insert into delta_result select 1; > select * from delta_result; > {code} > Exception Stack Trace: > {code:java} > Caused by: java.lang.RuntimeException: ORC split generation failed with > exception: String index out of range: -1 > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.generateWrappedSplits(FetchOperator.java:461) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:430) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:336) > at > org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) > ... 50 more > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > at java.lang.String.substring(String.java:1967) > at > org.apache.hadoop.hive.ql.io.AcidUtils.parsedDelta(AcidUtils.java:1128) > at > org.apache.hadoop.hive.ql.io.AcidUtils$ParsedDeltaLight.parse(AcidUtils.java:921) > at > org.apache.hadoop.hive.ql.io.AcidUtils.getLogicalLength(AcidUtils.java:2084) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$BISplitStrategy.getSplits(OrcInputFormat.java:1115) > at > org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1905) > ... 55 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)