[
https://issues.apache.org/jira/browse/DRILL-3709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712011#comment-14712011
]
Julien Le Dem edited comment on DRILL-3709 at 8/25/15 9:30 PM:
---------------------------------------------------------------
Here is something I added to Pig that made it easy to test queries:
http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/builtin/mock/Storage.html
{noformat}
PigServer pigServer = new PigServer(ExecType.LOCAL);
Data data = resetData(pigServer);
data.set("foo",
tuple("a"),
tuple("b"),
tuple("c")
);
pigServer.registerQuery("A = LOAD 'foo' USING mock.Storage();");
pigServer.registerQuery("STORE A INTO 'bar' USING mock.Storage();");
List out = data.get("bar");
assertEquals(tuple("a"), out.get(0));
assertEquals(tuple("b"), out.get(1));
assertEquals(tuple("c"), out.get(2));
{noformat}
was (Author: julienledem):
Here is something I added to Pig that made it easy to test queries:
http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/builtin/mock/Storage.html
{noformat}
PigServer pigServer = new PigServer(ExecType.LOCAL);
Data data = resetData(pigServer);
data.set("foo",
tuple("a"),
tuple("b"),
tuple("c")
);
pigServer.registerQuery("A = LOAD 'foo' USING mock.Storage();");
pigServer.registerQuery("STORE A INTO 'bar' USING mock.Storage();");
List out = data.get("bar");
assertEquals(tuple("a"), out.get(0));
assertEquals(tuple("b"), out.get(1));
assertEquals(tuple("c"), out.get(2));
{noformat}
> Memory Storage Plugin
> ---------------------
>
> Key: DRILL-3709
> URL: https://issues.apache.org/jira/browse/DRILL-3709
> Project: Apache Drill
> Issue Type: Improvement
> Components: Storage - Other
> Reporter: Andrew
> Assignee: Jacques Nadeau
> Fix For: 1.3.0
>
>
> Create an in-memory storage plugin for rapid prototyping, testing, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)