[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16502572#comment-16502572 ] Hive QA commented on HIVE-19493: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12926212/HIVE-19493.04.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/11535/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/11535/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-11535/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Tests exited with: Exception: Patch URL https://issues.apache.org/jira/secure/attachment/12926212/HIVE-19493.04.patch was found in seen patch url's cache and a test was probably run already on it. Aborting... {noformat} This message is automatically generated. ATTACHMENT ID: 12926212 - PreCommit-HIVE-Build > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Fix For: 3.1.0, 4.0.0 > > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16500591#comment-16500591 ] Vihang Karajgaonkar commented on HIVE-19493: Thanks [~mmccline] for the review and commit. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Fix For: 3.1.0, 4.0.0 > > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499371#comment-16499371 ] Matt McCline commented on HIVE-19493: - Not a big enough change to warrant running Hive QA on branch-3. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499370#comment-16499370 ] Matt McCline commented on HIVE-19493: - Committed to master. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499372#comment-16499372 ] Matt McCline commented on HIVE-19493: - Committed to branch-3 > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499368#comment-16499368 ] Matt McCline commented on HIVE-19493: - +1 LGTM. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499348#comment-16499348 ] Hive QA commented on HIVE-19493: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12926212/HIVE-19493.04.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 14449 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/11467/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/11467/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-11467/ 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: 12926212 - PreCommit-HIVE-Build > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499344#comment-16499344 ] Hive QA commented on HIVE-19493: | (x) *{color:red}-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} 7m 3s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 56s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 35s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 31s{color} | {color:blue} ql in master has 2278 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 52s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 55s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 55s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 33s{color} | {color:red} ql: The patch generated 1 new + 63 unchanged - 2 fixed = 64 total (was 65) {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} 3m 43s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 48s{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} 20m 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.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-11467/dev-support/hive-personality.sh | | git revision | master / 3bccc4e | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-11467/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-11467/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.04.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16496800#comment-16496800 ] Vihang Karajgaonkar commented on HIVE-19493: Thanks [~mmccline] I will keep an eye on this in case there are any related test failures. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.03.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16496798#comment-16496798 ] Matt McCline commented on HIVE-19493: - Now that HIVE-19529 has committed on master, remove the @Ignore annotations in new TestVectorDateDiff Unit Test, create patch #3, and submit to Hive QA. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Matt McCline >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch, > HIVE-19493.03.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16496096#comment-16496096 ] Matt McCline commented on HIVE-19493: - [~vihangk1] I'm hoping HIVE-19529 will go in the next few days after it gets through the long Hive QA queue for master and branch-3. Once it does I will update and submit your patch with the @Ignore annotations removed. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495561#comment-16495561 ] Vihang Karajgaonkar commented on HIVE-19493: HIVE-19529 introduces a test case which is fixed in this patch. [~mmccline] Do you think I should wait for HIVE-19529 to merged? or this patch in the current state can be merged (pending precommit)? > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495501#comment-16495501 ] Vihang Karajgaonkar commented on HIVE-19493: Hi [~mmccline] I don't see {{TestVectorDateDiff}} class in branch-3. I don't see the patch for HIVE-19498 in branch-3 to include that file either. Is it based on {{VectorRandomRowSource}}? I can try creating it for this patch to get this patch moving forward if its not present elsewhere. Thanks! > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16474438#comment-16474438 ] Matt McCline commented on HIVE-19493: - I wrote a new UT called TestVectorDateDiff (not checked in yet) that uses random data and patterns of batches with all the isRepeated NULL/non-NULL permutations. It has 6 test failures all involving NULLs. It is dependent on HIVE-19498 which I queued today for Hive QA and code review by Teddy. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16473666#comment-16473666 ] Matt McCline commented on HIVE-19493: - I'm creating a new TestVectorDateAddSub UT that generates random data/NULLs and batches with specific isRepeating patterns. When I run it without your patch I see failures which is encouraging. It is based on changes in HIVE-19384 which Teddy is code reading, so I need to get that one in first. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16473072#comment-16473072 ] Hive QA commented on HIVE-19493: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12922939/HIVE-19493.02.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 42 failed/errored test(s), 13578 tests executed *Failed tests:* {noformat} TestDbNotificationListener - did not produce a TEST-*.xml file (likely timed out) (batchId=247) TestHCatHiveCompatibility - did not produce a TEST-*.xml file (likely timed out) (batchId=247) TestNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=95)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16473047#comment-16473047 ] Hive QA commented on HIVE-19493: | (/) *{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} 7m 31s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 1s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 38s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 58s{color} | {color:blue} ql in master has 2321 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 55s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 20s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 0s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 0s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 37s{color} | {color:green} ql: The patch generated 0 new + 21 unchanged - 2 fixed = 21 total (was 23) {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 2s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 53s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 14s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 22m 36s{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_PreCommit-HIVE-Build-10852/dev-support/hive-personality.sh | | git revision | master / 615e71e | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-10852/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16471354#comment-16471354 ] Vihang Karajgaonkar commented on HIVE-19493: Thanks [~mmccline] for the review. Updated the diff with the suggested change. Actually I am having hard time to understand the complete logic of when noNulls needs to be set to {{true}}. For example, in the below code snippet from {{copySelected}} method {code:java} // Handle repeating case if (input.isRepeating) { if (input.noNulls || !input.isNull[0]) { String string = new String(input.vector[0], input.start[0], input.length[0]); try { date.setTime(formatter.parse(string).getTime()); output.vector[0] = DateWritable.dateToDays(date); output.isNull[0] = false; } catch (ParseException e) { output.isNull[0] = true; output.noNulls = false; } } else { output.isNull[0] = true; output.noNulls = false; } output.isRepeating = true; return; } {code} Can you please help me understand the following? * Why do we *not* set output.notNulls = true in the {{if (input.noNulls || !input.isNull[0])}} code block when we know that {{input.isRepeating == true}}? Shouldn't we be setting it to true and reset output.isNull[] array to all false values? My guess is that we are not doing this for performance reasons since it doesn't make sense to reset the whole {{output.isNull[]}} when we know that we only need to look for the first element. Just want to confirm if this understanding is correct (may be even add a comment so that its easy to remember next time) * As a corollary of the above statement it means both the following conditions are valid but they represent the same state of the columnVector. {{vector.isRepeating == true && vector.noNulls == true}} --> vector has a non-null repeating value {{vector.isRepeating == true && vector.noNulls == false && vector.isNull[0] == false}} --> vector has non-null repeating value. Is this understanding correct? * In case of {{input.isRepeating == false && selected == true}} case when {{input.noNulls == true && output.noNull == false}} why don't we set {{output.noNull = true}}. Is it because we think that when {{selected == true}} there may be less number of rows to be updated and hence its unnecessary work to reset {{output.isNull[]}} which we have to do everytime when set {{output.noNulls = true}}? I think the bug which was fixed in HIVE-18622 manifests when the {{output.noNulls}} is flipped from {{false to true}} and when the {{isNull}} array has some entries which are {{true}}. So may be we create an expression such that the columnVector is reused and this flag gets flipped. Just adding a row of nulls may not exercise the code which has the bug. Let me see if I can create an expression to test this particular issue. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch, HIVE-19493.02.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16471281#comment-16471281 ] Matt McCline commented on HIVE-19493: - [~vihangk1] thank you for catching this. I've started writing random data VectorExpression unit tests (e.g. HIVE-19384 for IF statements). Given this miss, I after I finish CAST statements I'm going to do date/timestamp area next. The one method propagateNullsColCol in VectorUDFDateDiffColCol makes me a little nervous. I tried to add a comment to the review board but it hung... {noformat} output.isNull[0] = false; {noformat} is missing is the isRepeated and input.noNulls || !input.isNull[0] block. The isRepeating block can be forced by inserting single rows in the Q file into ORC (and Parquet?) and that causes ORC to return a VectorizedRowBlock with isRepeating set. I'm not sure how to stimulate the other paths other than making sure there are more NULLs in the data... So, some Q file changes and/or UT changes would be great. > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16471198#comment-16471198 ] Vihang Karajgaonkar commented on HIVE-19493: adding review board link. [~mmccline] Can you please review? > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > Attachments: HIVE-19493.01.patch > > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-19493) VectorUDFDateDiffColCol copySelected does not handle nulls correctly
[ https://issues.apache.org/jira/browse/HIVE-19493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16470964#comment-16470964 ] Vihang Karajgaonkar commented on HIVE-19493: cc: [~mmccline] > VectorUDFDateDiffColCol copySelected does not handle nulls correctly > > > Key: HIVE-19493 > URL: https://issues.apache.org/jira/browse/HIVE-19493 > Project: Hive > Issue Type: Bug > Components: Vectorization >Reporter: Vihang Karajgaonkar >Assignee: Vihang Karajgaonkar >Priority: Major > > The {{copySelected}} method in {{VectorUDFDateDiffColCol}} class was missed > during HIVE-18622 -- This message was sent by Atlassian JIRA (v7.6.3#76005)