Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4558C108FF for ; Fri, 6 Mar 2015 21:13:58 +0000 (UTC) Received: (qmail 11942 invoked by uid 500); 6 Mar 2015 21:13:51 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 11889 invoked by uid 500); 6 Mar 2015 21:13:51 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 11876 invoked by uid 500); 6 Mar 2015 21:13:51 -0000 Delivered-To: apmail-incubator-drill-dev@incubator.apache.org Received: (qmail 11871 invoked by uid 99); 6 Mar 2015 21:13:51 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2015 21:13:51 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 452FB1D35E8; Fri, 6 Mar 2015 21:13:50 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3318029689421032490==" MIME-Version: 1.0 Subject: Re: Review Request 31809: DRILL-2193: Implement skip-all semantics for JSON reader From: "Hanifi Gunes" To: "Jason Altekruse" Cc: "drill" , "Hanifi Gunes" Date: Fri, 06 Mar 2015 21:13:50 -0000 Message-ID: <20150306211350.12263.4569@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Hanifi Gunes" X-ReviewGroup: drill-git X-ReviewRequest-URL: https://reviews.apache.org/r/31809/ X-Sender: "Hanifi Gunes" References: <20150306194431.12262.36140@reviews.apache.org> In-Reply-To: <20150306194431.12262.36140@reviews.apache.org> Reply-To: "Hanifi Gunes" X-ReviewRequest-Repository: drill-git --===============3318029689421032490== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/31809/#review75545 ----------------------------------------------------------- exec/java-exec/src/main/java/org/apache/drill/exec/vector/complex/fn/JsonReader.java this is not needed. will get rid of this. - Hanifi Gunes On March 6, 2015, 7:44 p.m., Jason Altekruse wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/31809/ > ----------------------------------------------------------- > > (Updated March 6, 2015, 7:44 p.m.) > > > Review request for drill and Jason Altekruse. > > > Bugs: DRILL-2193 > https://issues.apache.org/jira/browse/DRILL-2193 > > > Repository: drill-git > > > Description > ------- > > Currently all records will be read if we run a count(*) query. To avoid copying a lot of data, a new concept of a skip-all has been added in DRILL-2358. In this mode of operation, a reader will do the minimal amount of work to determine the number of records in the data source. This patch implements this functionality for the JSON reader.While it is processing raw text without meta-data, the whole file must be read from disk and analyzed to find the number of records, but there is no need to copy any data into Drill's Value Vectors. > > Patch authored by Hanifi Gunes. > > > Diffs > ----- > > exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/ColumnList.java PRE-CREATION > exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java c343177 > exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JsonProcessor.java PRE-CREATION > exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/reader/BaseJsonProcessor.java PRE-CREATION > exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/reader/CountingJsonReader.java PRE-CREATION > exec/java-exec/src/main/java/org/apache/drill/exec/vector/complex/fn/JsonReader.java cc5c8af > > Diff: https://reviews.apache.org/r/31809/diff/ > > > Testing > ------- > > > Thanks, > > Jason Altekruse > > --===============3318029689421032490==--