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 33948200CCC for ; Fri, 21 Jul 2017 09:20:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3225D16CCB0; Fri, 21 Jul 2017 07:20:59 +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 78F9C16CCAB for ; Fri, 21 Jul 2017 09:20:58 +0200 (CEST) Received: (qmail 70618 invoked by uid 500); 21 Jul 2017 07:20:57 -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 70575 invoked by uid 99); 21 Jul 2017 07:20:57 -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; Fri, 21 Jul 2017 07:20:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2433CED30B; Fri, 21 Jul 2017 07:20:57 +0000 (UTC) From: arina-ielchiieva To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #877: DRILL-5660: Drill 1.10 queries fail due to Parquet ... Content-Type: text/plain Message-Id: <20170721072057.2433CED30B@git1-us-west.apache.org> Date: Fri, 21 Jul 2017 07:20:57 +0000 (UTC) archived-at: Fri, 21 Jul 2017 07:20:59 -0000 Github user arina-ielchiieva commented on a diff in the pull request: https://github.com/apache/drill/pull/877#discussion_r128697396 --- Diff: exec/java-exec/src/test/java/org/apache/drill/BaseTestQuery.java --- @@ -639,14 +644,18 @@ protected static void copyDirectoryIntoTempSpace(String resourcesDir, String des * @param srcFileOnClassPath the source path of metadata cache file, which should be replaced * @param destFolderInTmp the parent folder name of the metadata cache file * @param metaFileName the name of metadata cache file depending on the type of the metadata + * @param customStringReplacement custom string to replace the "CUSTOM_REPLACED" target string in metadata file * @throws IOException if a create or write errors occur */ - protected static void copyMetaDataCacheToTempReplacingInternalPaths(String srcFileOnClassPath, String destFolderInTmp, - String metaFileName) throws IOException { + protected static void copyMetaDataCacheToTempWithReplacements(String srcFileOnClassPath, + String destFolderInTmp, String metaFileName, String customStringReplacement) throws IOException { String metadataFileContents = getFile(srcFileOnClassPath); Path rootMeta = new Path(dfsTestTmpSchemaLocation, destFolderInTmp); Path newMetaCache = new Path(rootMeta, metaFileName); FSDataOutputStream outSteam = fs.create(newMetaCache); + if (customStringReplacement!=null) { --- End diff -- `if (customStringReplacement!=null) {` -> `if (customStringReplacement != null) {` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---