phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Januszkiewicz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-3696) phoenix-spark plugin doesn't handle column names with dots properly
Date Mon, 27 Feb 2017 12:58:45 GMT
Marcin Januszkiewicz created PHOENIX-3696:
---------------------------------------------

             Summary: phoenix-spark plugin doesn't handle column names with dots properly
                 Key: PHOENIX-3696
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3696
             Project: Phoenix
          Issue Type: Bug
            Reporter: Marcin Januszkiewicz


If a phoenix table contains a dot, then the table cannot be used with the phoenix-spark plugin.
Given a simple table:

`CREATE TABLE "dot" ("key" VARCHAR PRIMARY KEY, "first.name" VARCHAR)`

The following code will fail:

`val df = sqlContext.load("org.apache.phoenix.spark", Map("table" -> SchemaUtil.getEscapedArgument("dot"),
"zkUrl" -> quorumAddress))
//This will crash
df.show()`



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message