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 90372200BE7 for ; Tue, 6 Dec 2016 07:12:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8EE2D160B18; Tue, 6 Dec 2016 06:12:30 +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 09D09160B21 for ; Tue, 6 Dec 2016 07:12:29 +0100 (CET) Received: (qmail 32748 invoked by uid 500); 6 Dec 2016 06:12:27 -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 31992 invoked by uid 99); 6 Dec 2016 06:12:26 -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, 06 Dec 2016 06:12:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 48ED5EEE2F; Tue, 6 Dec 2016 06:12:26 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #666: DRILL-4956: Temporary tables support Content-Type: text/plain Message-Id: <20161206061226.48ED5EEE2F@git1-us-west.apache.org> Date: Tue, 6 Dec 2016 06:12:26 +0000 (UTC) archived-at: Tue, 06 Dec 2016 06:12:30 -0000 Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/666#discussion_r90698347 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/SqlHandlerUtil.java --- @@ -235,4 +235,15 @@ public static void unparseSqlNodeList(SqlWriter writer, int leftPrec, int rightP writer.keyword(")"); } + /** + * Generates temporary table name using original table and unique identifies. + * + * @param tableName original table name + * @param uuid unique identifier + * @return generated temporary table name + */ + public static String generateTemporaryTableName(String tableName, String uuid) { --- End diff -- Generates a unique name. But, now the table name on disk will differ from the table name that the user defined. Does the code handle this case: knows to look in a registry to translate from one to the other? Would it be simpler to create a subdirectory with uuid, and put all the tables for a session in that directory with their original name? --- 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. ---