Return-Path: X-Original-To: apmail-impala-dev-archive@minotaur.apache.org Delivered-To: apmail-impala-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83EAD19929 for ; Mon, 14 Mar 2016 23:20:50 +0000 (UTC) Received: (qmail 5170 invoked by uid 500); 14 Mar 2016 23:20:50 -0000 Delivered-To: apmail-impala-dev-archive@impala.apache.org Received: (qmail 5099 invoked by uid 500); 14 Mar 2016 23:20:50 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 5078 invoked by uid 99); 14 Mar 2016 23:20:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2016 23:20:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ADECB1801A9 for ; Mon, 14 Mar 2016 23:20:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9H98925GJWtj for ; Mon, 14 Mar 2016 23:20:48 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 55BFF5F56F for ; Mon, 14 Mar 2016 23:20:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id u2ENKlEe011886; Mon, 14 Mar 2016 23:20:47 GMT Message-Id: <201603142320.u2ENKlEe011886@ip-10-146-233-104.ec2.internal> Date: Mon, 14 Mar 2016 23:20:47 +0000 From: "Dan Hecht (Code Review)" To: Skye Wanderman-Milne , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Silvius Rus Reply-To: dhecht@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_PREVIEW_do_parquet_schema_resolution_by_name_instead_of_ordinal=0A?= X-Gerrit-Change-Id: Id0c715ea23792b2a6872610839a40532aabbb5a6 X-Gerrit-ChangeURL: X-Gerrit-Commit: 32493dff0e399bd4e8f611b491e0c432d13e8d67 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.10-rc0 Dan Hecht has posted comments on this change. Change subject: PREVIEW do parquet schema resolution by name instead of ordinal ...................................................................... Patch Set 1: (4 comments) http://gerrit.cloudera.org:8080/#/c/2384/1/be/src/exec/hdfs-parquet-scanner.cc File be/src/exec/hdfs-parquet-scanner.cc: Line 193: resolve_by_name_(state->query_options().resolve_parquet_by_name), let's just use the query option directly rather than having more state to keep track of. Line 1994: if (resolve_by_name_ && (next_idx == 0 || col_type->type == TYPE_STRUCT)) { why is it that arrays and maps don't also take this path? a comment explaining this might help. also, this logic and the one at L1945 now look kinda similar. i wonder if there's a way to refactor the code? http://gerrit.cloudera.org:8080/#/c/2384/1/be/src/exec/hdfs-parquet-scanner.h File be/src/exec/hdfs-parquet-scanner.h: Line 425: resolve_by_name query option http://gerrit.cloudera.org:8080/#/c/2384/1/be/src/service/query-options.h File be/src/service/query-options.h: Line 77: QUERY_OPT_FN(resolve_parquet_by_name, RESOLVE_PARQUET_BY_NAME); how about making this an enum (i.e. position, name, and eventually field-id). -- To view, visit http://gerrit.cloudera.org:8080/2384 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id0c715ea23792b2a6872610839a40532aabbb5a6 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Skye Wanderman-Milne Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Silvius Rus Gerrit-HasComments: Yes