[ https://issues.apache.org/jira/browse/PHOENIX-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274716#comment-16274716 ]
Hadoop QA commented on PHOENIX-4139: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12900237/PHOENIX-4139_v2.patch against master branch at commit 88038a2dacb7aa1a90015163d4d75d04793e4e11. ATTACHMENT ID: 12900237 {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 release audit{color}. The applied patch generated 3 release audit warnings (more than the master's current 0 warnings). {color:red}-1 lineLengths{color}. The patch introduces the following lines longer than 100: + PreparedStatement statement = conn.prepareStatement("UPSERT INTO " + tableName + "(nam, address, id) values (?,?,?)"); + ResultSet rs = stmt.executeQuery("select distinct 'harshit' as \"test_column\", trim(nam), trim(nam), lower(nam) from " + tableName); {color:red}-1 core tests{color}. The patch failed these unit tests: ./phoenix-hive/target/failsafe-reports/TEST-org.apache.phoenix.hive.HiveTezIT Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/1648//testReport/ Release audit warnings: https://builds.apache.org/job/PreCommit-PHOENIX-Build/1648//artifact/patchprocess/patchReleaseAuditWarnings.txt Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/1648//console This message is automatically generated. > select distinct with identical aggregations return weird values > ---------------------------------------------------------------- > > Key: PHOENIX-4139 > URL: https://issues.apache.org/jira/browse/PHOENIX-4139 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.12.0 > Environment: minicluster > Reporter: Csaba Skrabak > Assignee: Csaba Skrabak > Priority: Minor > Fix For: 4.14.0 > > Attachments: PHOENIX-4139.patch, PHOENIX-4139_v2.patch > > > From sme-hbase hipchat room: > Pulkit Bhardwaj·10:31 > i'm seeing a weird issue with phoenix, appreciate some thoughts > Created a simple table in phoenix > {noformat} > 0: jdbc:phoenix:> create table test_select(nam VARCHAR(20), address > VARCHAR(20), id BIGINT > . . . . . . . . > constraint my_pk primary key (id)); > 0: jdbc:phoenix:> upsert into test_select (nam, address,id) > values('pulkit','badaun',1); > 0: jdbc:phoenix:> select * from test_select; > +---------+----------+-----+ > | NAM | ADDRESS | ID | > +---------+----------+-----+ > | pulkit | badaun | 1 | > +---------+----------+-----+ > 0: jdbc:phoenix:> select distinct 'harshit' as "test_column", nam from > test_select; > +--------------+---------+ > | test_column | NAM | > +--------------+---------+ > | harshit | pulkit | > +--------------+---------+ > 0: jdbc:phoenix:> select distinct 'harshit' as "test_column", trim(nam), > trim(nam) from test_select; > +--------------+----------------+----------------+ > | test_column | TRIM(NAM) | TRIM(NAM) | > +--------------+----------------+----------------+ > | harshit | pulkitpulkit | pulkitpulkit | > +--------------+----------------+----------------+ > {noformat} > When I apply a trim on the nam column and use it multiple times, the output > has the cell data duplicated! > {noformat} > 0: jdbc:phoenix:> select distinct 'harshit' as "test_column", trim(nam), > trim(nam), trim(nam) from test_select; > +--------------+-----------------------+-----------------------+-----------------------+ > | test_column | TRIM(NAM) | TRIM(NAM) | > TRIM(NAM) | > +--------------+-----------------------+-----------------------+-----------------------+ > | harshit | pulkitpulkitpulkit | pulkitpulkitpulkit | > pulkitpulkitpulkit | > +--------------+-----------------------+-----------------------+-----------------------+ > {noformat} > Wondering if someone has seen this before?? > One thing to note is, if I remove the —— distinct 'harshit' as "test_column" > —— The issue is not seen > {noformat} > 0: jdbc:phoenix:> select trim(nam), trim(nam), trim(nam) from test_select; > +------------+------------+------------+ > | TRIM(NAM) | TRIM(NAM) | TRIM(NAM) | > +------------+------------+------------+ > | pulkit | pulkit | pulkit | > +------------+------------+------------+ > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)