Github user pujav65 commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/33#discussion_r63051791
  
    --- Diff: 
pig/accumulo.pig/src/main/java/mvm/rya/accumulo/pig/StatementPatternStorage.java
 ---
    @@ -289,11 +289,14 @@ public Tuple getNext() throws IOException {
                     RyaStatement ryaStatement = 
ryaContext.deserializeTriple(layout, new TripleRow(key.getRow().getBytes(),
                             key.getColumnFamily().getBytes(), 
key.getColumnQualifier().getBytes()));
     
    -                Tuple tuple = TupleFactory.getInstance().newTuple(4);
    +                Tuple tuple = TupleFactory.getInstance().newTuple(7);
                     tuple.set(0, ryaStatement.getSubject().getData());
                     tuple.set(1, ryaStatement.getPredicate().getData());
                     tuple.set(2, ryaStatement.getObject().getData());
                     tuple.set(3, (ryaStatement.getContext() != null) ? 
(ryaStatement.getContext().getData()) : (null));
    +                tuple.set(4, ryaStatement.getSubject().getDataType());
    +                tuple.set(5, ryaStatement.getPredicate().getDataType());
    +                tuple.set(6, ryaStatement.getObject().getDataType());
    --- End diff --
    
    Not a big deal, but you only need to set the data type on the object -- 
subjects/predicates are always uris by default.  not a huge issue, I'll merge 
it regardless.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to