From commits-return-320-archive-asf-public=cust-asf.ponee.io@nemo.apache.org Wed Oct 17 03:13:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EED8D1807AC for ; Wed, 17 Oct 2018 03:13:19 +0200 (CEST) Received: (qmail 67784 invoked by uid 500); 17 Oct 2018 01:13:19 -0000 Mailing-List: contact commits-help@nemo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nemo.apache.org Delivered-To: mailing list commits@nemo.apache.org Received: (qmail 67625 invoked by uid 99); 17 Oct 2018 01:13:18 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2018 01:13:18 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 989F282F3C; Wed, 17 Oct 2018 01:13:17 +0000 (UTC) Date: Wed, 17 Oct 2018 01:13:28 +0000 To: "commits@nemo.apache.org" Subject: [incubator-nemo] 11/14: substring MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: johnyangk@apache.org In-Reply-To: <153973879710.2264.11572187070349733362@gitbox.apache.org> References: <153973879710.2264.11572187070349733362@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-nemo X-Git-Refname: refs/heads/tpch-fix X-Git-Reftype: branch X-Git-Rev: 60f50674c83d4b9f7aad4732bc61090e94aa237a X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20181017011317.989F282F3C@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. johnyangk pushed a commit to branch tpch-fix in repository https://gitbox.apache.org/repos/asf/incubator-nemo.git commit 60f50674c83d4b9f7aad4732bc61090e94aa237a Author: John Yang AuthorDate: Thu Sep 13 10:32:08 2018 +0900 substring --- .../beam/src/main/java/org/apache/nemo/examples/beam/tpch/Tpch.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/beam/src/main/java/org/apache/nemo/examples/beam/tpch/Tpch.java b/examples/beam/src/main/java/org/apache/nemo/examples/beam/tpch/Tpch.java index 08ab84e..8f7c937 100644 --- a/examples/beam/src/main/java/org/apache/nemo/examples/beam/tpch/Tpch.java +++ b/examples/beam/src/main/java/org/apache/nemo/examples/beam/tpch/Tpch.java @@ -111,10 +111,7 @@ public final class Tpch { for (final Map.Entry tableSchema : hSchemas.entrySet()) { final String tableName = tableSchema.getKey(); - final List tokens = Arrays.asList(query.split(" ")); - LOG.info("Tokens are {}", tokens); - - if (tokens.contains(tableName)) { + if (query.contains(tableName)) { LOG.info("HIT: tablename {}", tableName); final String filePattern = inputDirectory + tableSchema.getKey() + ".tbl*";