Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D7EC8200B61 for ; Tue, 9 Aug 2016 19:47:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D66D6160A6B; Tue, 9 Aug 2016 17:47:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28D3F160AA5 for ; Tue, 9 Aug 2016 19:47:31 +0200 (CEST) Received: (qmail 83689 invoked by uid 500); 9 Aug 2016 17:47:30 -0000 Mailing-List: contact commits-help@quickstep.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@quickstep.incubator.apache.org Delivered-To: mailing list commits@quickstep.incubator.apache.org Received: (qmail 83680 invoked by uid 99); 9 Aug 2016 17:47:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 17:47:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7D462C1810 for ; Tue, 9 Aug 2016 17:47:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id bHeQE8hQmzeS for ; Tue, 9 Aug 2016 17:47:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 68DE25FBBE for ; Tue, 9 Aug 2016 17:47:26 +0000 (UTC) Received: (qmail 83472 invoked by uid 99); 9 Aug 2016 17:47:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 17:47:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7B8EDE3839; Tue, 9 Aug 2016 17:47:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zuyuz@apache.org To: commits@quickstep.incubator.apache.org Date: Tue, 09 Aug 2016 17:47:26 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/4] incubator-quickstep git commit: Fixed bugs in creating WorkOrderProtos. archived-at: Tue, 09 Aug 2016 17:47:32 -0000 Fixed bugs in creating WorkOrderProtos. Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/2c0ce6a3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/2c0ce6a3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/2c0ce6a3 Branch: refs/heads/glog-tmb-msgs Commit: 2c0ce6a3bcf2ec40b0c32d077552cda3e225f787 Parents: 85e02de Author: Zuyu Zhang Authored: Mon Aug 8 18:42:32 2016 -0700 Committer: Zuyu Zhang Committed: Tue Aug 9 10:42:25 2016 -0700 ---------------------------------------------------------------------- relational_operators/HashJoinOperator.cpp | 1 + relational_operators/WorkOrderFactory.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/2c0ce6a3/relational_operators/HashJoinOperator.cpp ---------------------------------------------------------------------- diff --git a/relational_operators/HashJoinOperator.cpp b/relational_operators/HashJoinOperator.cpp index 7851f41..779c0fe 100644 --- a/relational_operators/HashJoinOperator.cpp +++ b/relational_operators/HashJoinOperator.cpp @@ -393,6 +393,7 @@ bool HashJoinOperator::getAllOuterJoinWorkOrderProtos(WorkOrderProtosContainer * serialization::WorkOrder* HashJoinOperator::createOuterJoinWorkOrderProto(const block_id block) { serialization::WorkOrder *proto = new serialization::WorkOrder; proto->set_work_order_type(serialization::HASH_JOIN); + proto->set_query_id(query_id_); proto->SetExtension(serialization::HashJoinWorkOrder::hash_join_work_order_type, serialization::HashJoinWorkOrder::HASH_OUTER_JOIN); http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/2c0ce6a3/relational_operators/WorkOrderFactory.cpp ---------------------------------------------------------------------- diff --git a/relational_operators/WorkOrderFactory.cpp b/relational_operators/WorkOrderFactory.cpp index 721d735..7d7af59 100644 --- a/relational_operators/WorkOrderFactory.cpp +++ b/relational_operators/WorkOrderFactory.cpp @@ -533,13 +533,11 @@ bool WorkOrderFactory::ProtoIsValid(const serialization::WorkOrder &proto, return false; } - const CatalogRelationSchema &build_relation = catalog_database.getRelationSchemaById(build_relation_id); const CatalogRelationSchema &probe_relation = catalog_database.getRelationSchemaById(probe_relation_id); for (int i = 0; i < proto.ExtensionSize(serialization::HashJoinWorkOrder::join_key_attributes); ++i) { const attribute_id attr_id = proto.GetExtension(serialization::HashJoinWorkOrder::join_key_attributes, i); - if (!build_relation.hasAttributeWithId(attr_id) || - !probe_relation.hasAttributeWithId(attr_id)) { + if (!probe_relation.hasAttributeWithId(attr_id)) { return false; } }