phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-1044) Phoenix-Pig: No results returned unless all used columns are selected
Date Sun, 21 Sep 2014 17:51:33 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14142532#comment-14142532
] 

Hudson commented on PHOENIX-1044:
---------------------------------

SUCCESS: Integrated in Phoenix | Master | Hadoop1 #375 (See [https://builds.apache.org/job/Phoenix-master-hadoop1/375/])
Phoenix-1044 : Changes to PhoenixRecordReader to fix the scan. (maghamravikiran: rev f2c9bbab0bd2297a06a16962c8641b50c3472eef)
* phoenix-pig/src/main/java/org/apache/phoenix/pig/hadoop/PhoenixInputFormat.java
* phoenix-pig/src/main/java/org/apache/phoenix/pig/hadoop/PhoenixRecordReader.java
* phoenix-pig/src/it/java/org/apache/phoenix/pig/PhoenixHBaseLoaderIT.java


> Phoenix-Pig: No results returned unless all used columns are selected
> ---------------------------------------------------------------------
>
>                 Key: PHOENIX-1044
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1044
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.1
>            Reporter: Josh Mahonin
>            Priority: Minor
>         Attachments: 0001-PHOENIX-1044-PHOENIX_4.1.0.patch, 0001-PHOENIX-1044.patch,
0001-PHOENIX_1044-PHOENIX_MASTER.patch
>
>
> Not critical, but a bit frustrating:
> I'm creating a PhoenixPigConfiguration via the following:
> > conf.setSelectColumns("FOO,BAR")
> > conf.setSelectStatement("SELECT FOO, BAR FROM MYTABLE WHERE BAZ=123")
> In SQuirrel, that query returns with results, but the going through Pig, it returns nothing.
> I also get the same results if I try like so:
> > conf.setSelectColumns("FOO,BAR,BAZ")
> > conf.setSelectStatement("SELECT FOO, BAR FROM MYTABLE WHERE BAZ=123")
> The workaround is to modify the select statement to also include the 'BAZ' column, even
though I don't need it for computation:
> > conf.setSelectStatement("SELECT FOO, BAR, BAZ FROM MYTABLE WHERE BAZ=123")



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message