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 692DB200BC8 for ; Tue, 8 Nov 2016 21:00:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 67BD7160AD0; Tue, 8 Nov 2016 20:00:05 +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 B5C04160B0A for ; Tue, 8 Nov 2016 21:00:04 +0100 (CET) Received: (qmail 90839 invoked by uid 500); 8 Nov 2016 19:59:58 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 90512 invoked by uid 99); 8 Nov 2016 19:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 19:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 72D9A2C2A69 for ; Tue, 8 Nov 2016 19:59:58 +0000 (UTC) Date: Tue, 8 Nov 2016 19:59:58 +0000 (UTC) From: "Nico Pappagianis (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3427) rdd.saveToPhoenix gives table undefined error when attempting to write to a tenant-specific view (TenantId defined in configuration object and passed to saveToPhoenix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 20:00:05 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15648637#comment-15648637 ] Nico Pappagianis commented on PHOENIX-3427: ------------------------------------------- Thanks Josh. I implemented that change and wrote a couple tests around it. I've refactored the IT test classes some, as the single class was starting to get unwieldy. Let me know if it looks OK, I'll push to my branch shortly. Thanks again! Hope all is well with your new baby :) > rdd.saveToPhoenix gives table undefined error when attempting to write to a tenant-specific view (TenantId defined in configuration object and passed to saveToPhoenix) > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: PHOENIX-3427 > URL: https://issues.apache.org/jira/browse/PHOENIX-3427 > Project: Phoenix > Issue Type: Bug > Reporter: Nico Pappagianis > > Although we can read from a tenant-specific view by passing TenantId in the conf object when calling sc.phoenixTableAsRDD the same does not hold for rdd.saveToPhoenix. Calling saveToPhoenix with a tenant-specific view as the table name gives a table undefined error, even when passing in the TenantId with the conf object. > It appears that TenantId is lost during the execution path of saveToPhoenix. -- This message was sent by Atlassian JIRA (v6.3.4#6332)