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 387672004CA for ; Wed, 11 May 2016 12:08:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36F581602BE; Wed, 11 May 2016 10:08:17 +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 824581602BF for ; Wed, 11 May 2016 12:08:16 +0200 (CEST) Received: (qmail 71132 invoked by uid 500); 11 May 2016 10:08:15 -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 71121 invoked by uid 99); 11 May 2016 10:08:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 10:08:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D234BCC300 for ; Wed, 11 May 2016 10:08:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.636 X-Spam-Level: X-Spam-Status: No, score=-4.636 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.416] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PY88QzWI1KiI for ; Wed, 11 May 2016 10:08:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 1ABB660E43 for ; Wed, 11 May 2016 10:08:13 +0000 (UTC) Received: (qmail 70828 invoked by uid 99); 11 May 2016 10:08:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 10:08:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DAF7A2C1F5D for ; Wed, 11 May 2016 10:08:12 +0000 (UTC) Date: Wed, 11 May 2016 10:08:12 +0000 (UTC) From: "Ian Hellstrom (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-2889) No exception thrown in Phoenix-Spark when column does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 May 2016 10:08:17 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ian Hellstrom updated PHOENIX-2889: ----------------------------------- Summary: No exception thrown in Phoenix-Spark when column does not exist (was: No exception in Phoenix-Spark when column does not exist) > No exception thrown in Phoenix-Spark when column does not exist > --------------------------------------------------------------- > > Key: PHOENIX-2889 > URL: https://issues.apache.org/jira/browse/PHOENIX-2889 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.4.0 > Environment: Phoenix: 4.4 > HBase: 1.1.2.2.3.2.0-2950 (Hortonworks HDP) > Spark: 1.4.1 (compiled with Scala 2.10) > Reporter: Ian Hellstrom > Labels: spark > > When using {{phoenixTableAsDataFrame}} on a table with auto-capitalized qualifiers where the user has erroneously specified these with lower caps, no exception is returned. Ideally, an {{org.apache.phoenix.schema.ColumnNotFoundException}} is thrown but instead lines like the following show up in the log > {code} > INFO RpcRetryingCaller: Call exception, tries=10, retries=35, started=48168 ms ago, cancelled=false, msg= > {code} > A minimal example: > {code} > CREATE TABLE test (foo INT, bar VARCHAR); > UPSERT INTO test VALUES (1, 'hello'); > UPSERT INTO test VALUES (2, 'bye'); > {code} > In Spark (shell): > {code} > import org.apache.hadoop.conf.Configuration > import org.apache.hadoop.hbase.HBaseConfiguration > import org.apache.phoenix.spark._ > @transient lazy val hadoopConf: Configuration = new Configuration() > @transient lazy val hbConf: Configuration = HBaseConfiguration.create(hadoopConf) > val df = sqlContext.phoenixTableAsDataFrame("TEST", Array("foo", "bar"), conf = hbConf) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)