Return-Path: X-Original-To: apmail-incubator-drill-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-drill-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77C23104B6 for ; Sat, 19 Oct 2013 18:07:54 +0000 (UTC) Received: (qmail 94352 invoked by uid 500); 19 Oct 2013 18:07:53 -0000 Delivered-To: apmail-incubator-drill-user-archive@incubator.apache.org Received: (qmail 94193 invoked by uid 500); 19 Oct 2013 18:07:47 -0000 Mailing-List: contact drill-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: drill-user@incubator.apache.org Delivered-To: mailing list drill-user@incubator.apache.org Received: (qmail 94185 invoked by uid 99); 19 Oct 2013 18:07:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Oct 2013 18:07:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FROM_12LTRDOM,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of varadham@thoughtworks.com designates 64.18.0.147 as permitted sender) Received: from [64.18.0.147] (HELO exprod5og116.obsmtp.com) (64.18.0.147) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Oct 2013 18:07:39 +0000 Received: from mail-we0-f169.google.com ([74.125.82.169]) (using TLSv1) by exprod5ob116.postini.com ([64.18.4.12]) with SMTP ID DSNKUmLKVoLgPxcQiJYo9IgWSU2CDUhtJ3i9@postini.com; Sat, 19 Oct 2013 11:07:19 PDT Received: by mail-we0-f169.google.com with SMTP id q58so5111202wes.28 for ; Sat, 19 Oct 2013 11:07:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=yl+sokx66Gge80MVQWRxrLW4v8yQ7jjJsOuQo6qeeWw=; b=AOuvBJ4q26yXz12PD6Xab3A7u6d0+qg1iHte/odLl+6UY+Upr/UDv4TwrDx+pgXieB E+QwO6KnWNxsVYCENoT3Qr9CGL3O1G+v8R2tuob+u2ok3eqQmMaRWhIMGC3uv+Vunr4h akJE1TWOceiT7nFiE1t6cvNNF7POk5/TTW9g+XEM2t8DsdOItExfO+XOqJVZc9I2Sk2L xtlguy7DneGjwPCHavq1WVgYYvLiigHxWW+Ylsh8aaS09sq8JmspOFvBxUxciL8tvelx T+jqytQijxFUqTRZrtt20l2Q5D4yHrJlspDLhBGjLkB1iEccch+IWnIvxfQ2sxibqcev vC+A== X-Gm-Message-State: ALoCoQlAhZWhJNtrLAOzxJMvL/XPQpoap7yT6wuVj12D7W1gpqoQXKbXYs54VhdkZv1N67hpASCMu03TiixcLGMoFBc/F4hSbdt5nISf3Vxm6J5MFLDt+5dzIDRYIjr+OwzcR3/dXupWVZI5AOSf73rZ0pRaGP8N2sZVb4cAGdnGYsXIHjl67OB+6hsoBrjYBFNQEE+jUXQV X-Received: by 10.194.63.228 with SMTP id j4mr7242502wjs.34.1382206037823; Sat, 19 Oct 2013 11:07:17 -0700 (PDT) X-Received: by 10.194.63.228 with SMTP id j4mr7242500wjs.34.1382206037732; Sat, 19 Oct 2013 11:07:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.88.135 with HTTP; Sat, 19 Oct 2013 11:06:57 -0700 (PDT) From: Varadharajan M Date: Sat, 19 Oct 2013 23:36:57 +0530 Message-ID: Subject: Usage of 'store' operation in Logical Queries To: drill-user@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7ba97f3ae2c48d04e91beb8f X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba97f3ae2c48d04e91beb8f Content-Type: text/plain; charset=ISO-8859-1 Hi All, I've a logical plan, thats intended to read from a json file and write the output to another file. I was under the impression that the write operation could be done with the help of 'store' operation. Here is my logical plan: { "head" : { "type" : "APACHE_DRILL_LOGICAL", "version" : "1", "generator" : { "type" : "optiq", "info" : "na" } }, "storage" : { "jsonl" : { "type" : "json", "dfsName" : "file:///" }, "filel" : { "type" : "fs", "root" : "file:///" } }, "query" : [ { "op" : "scan", "memo" : "initial_scan", "ref" : "_MAP", "storageengine" : "jsonl", "selection" : [ { "path" : "/tmp/students.json" } ], "@id" : 1 }, { "op" : "store", "input" : 1, "memo" : "output sink", "storageengine": "filel", "@id" : 2, target: { file: "file:///tmp/do.json" } } ] } Now, if i try to run this logical plan with the submit_plan shell script, i get the output to the console rather than to the specified file (That is, there is no data written to the file). Am i missing anything here? - Varadha --047d7ba97f3ae2c48d04e91beb8f--