drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Le Dem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3709) Memory Storage Plugin
Date Tue, 25 Aug 2015 21:30:46 GMT

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

Julien Le Dem commented on DRILL-3709:
--------------------------------------

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)

Mime
View raw message