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

    https://github.com/apache/incubator-hawq/pull/1261#discussion_r124941281
  
    --- Diff: 
pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/examples/DummyAccessor.java 
---
    @@ -0,0 +1,46 @@
    +package org.apache.hawq.pxf.api.examples;
    +
    +import org.apache.hawq.pxf.api.OneRow;
    +import org.apache.hawq.pxf.api.ReadAccessor;
    +import org.apache.hawq.pxf.api.utilities.InputData;
    +import org.apache.hawq.pxf.api.utilities.Plugin;
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
    +
    +public class DummyAccessor extends Plugin implements ReadAccessor {
    +    private static final Log LOG = LogFactory.getLog(DummyAccessor.class);
    +    private int rowNumber;
    +    private int fragmentNumber;
    +    public DummyAccessor(InputData metaData) {
    +        super(metaData);
    +    }
    +    @Override
    +    public boolean openForRead() throws Exception {
    +        /* fopen or similar */
    +        return true;
    +    }
    +    @Override
    +    public OneRow readNextObject() throws Exception {
    +        /* return next row , <key=fragmentNo.rowNo, 
val=rowNo,text,fragmentNo>*/
    --- End diff --
    
    As long as you define the schema with text as the data type for each field, 
you will still see text data. So shouldn't matter


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to