[ https://issues.apache.org/jira/browse/PHOENIX-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471766#comment-15471766 ]
Hadoop QA commented on PHOENIX-2946: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12827428/PHOENIX-2946_v3.patch against master branch at commit b65e385a828f89980ba4e5ae68f724d7cad50265. ATTACHMENT ID: 12827428 {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:red}-1 tests included{color}. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:red}-1 javadoc{color}. The javadoc tool appears to have generated 34 warning messages. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:red}-1 lineLengths{color}. The patch introduces the following lines longer than 100: + "CREATE TABLE IF NOT EXISTS T1 (k1 INTEGER NOT NULL, dates DATE, timestamps TIMESTAMP, times TIME CONSTRAINT pk PRIMARY KEY (k1))"; + String dml = "UPSERT INTO T1 VALUES (1, TO_DATE('Sat, 3 Feb 2008 03:05:06 GMT', 'EEE, d MMM yyyy HH:mm:ss z', 'UTC'), TO_TIMESTAMP('2006-04-12 15:10:20'), " + + dml = "UPSERT INTO T1 VALUES (2, TO_DATE('Sat, 3 Feb 2008 03:05:06 GMT', 'EEE, d MMM yyyy HH:mm:ss z', 'UTC'), TO_TIMESTAMP('2006-04-12 10:10:20'), " + + dml = "UPSERT INTO T1 VALUES (3, TO_DATE('Sat, 3 Feb 2008 03:05:06 GMT', 'EEE, d MMM yyyy HH:mm:ss z', 'UTC'), TO_TIMESTAMP('2006-04-12 08:10:20'), " + + throw new RuntimeException(TypeMismatchException.newException(PTimestamp.INSTANCE, returnType, this.getName())); + return super.isBytesComparableWith(otherType) || otherType == PTime.INSTANCE || otherType == PTimestamp.INSTANCE; + return super.isBytesComparableWith(otherType) || otherType == PDate.INSTANCE || otherType == PTimestamp.INSTANCE; + return super.isBytesComparableWith(otherType) || otherType == PTime.INSTANCE || otherType == PDate.INSTANCE; + return super.isBytesComparableWith(otherType) || otherType == PUnsignedTime.INSTANCE || otherType == PUnsignedTimestamp.INSTANCE; + return super.isBytesComparableWith(otherType) || otherType == PUnsignedDate.INSTANCE || otherType == PUnsignedTimestamp.INSTANCE; {color:red}-1 core tests{color}. The patch failed these unit tests: ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.UpsertSelectIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.CastAndCoerceIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.SpooledSortMergeJoinIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.CSVCommonsLoaderIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.UpsertValuesIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.SortMergeJoinIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.HashJoinIT {color:red}-1 core zombie tests{color}. There are 1 zombie test(s): Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/555//testReport/ Javadoc warnings: https://builds.apache.org/job/PreCommit-PHOENIX-Build/555//artifact/patchprocess/patchJavadocWarnings.txt Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/555//console This message is automatically generated. > Projected comparison between date and timestamp columns always returns true > --------------------------------------------------------------------------- > > Key: PHOENIX-2946 > URL: https://issues.apache.org/jira/browse/PHOENIX-2946 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.6.0, 4.8.0 > Reporter: Kevin Liew > Assignee: Kevin Liew > Priority: Minor > Labels: comparison, date, timestamp > Fix For: 4.9.0, 4.8.1 > > Attachments: PHOENIX-2946_v2.patch, PHOENIX-2946_v3.patch > > > {code} > 0: jdbc:phoenix:thin:url=http://localhost:876> create table test (dateCol > DATE primary key, timestampCol TIMESTAMP); > No rows affected (2.559 seconds) > 0: jdbc:phoenix:thin:url=http://localhost:876> upsert into test values > (TO_DATE('1990-01-01'), NOW()); > 1 row affected (0.255 seconds) > 0: jdbc:phoenix:thin:url=http://localhost:876> select dateCol = timestampCol > from test; > +------------------------------------------+ > | DATECOL = TIMESTAMPCOL | > +------------------------------------------+ > | true | > +------------------------------------------+ > 1 row selected (0.019 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)