spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Armbrust (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-11778) HiveContext.read.table does not support user-specified database names
Date Thu, 19 Nov 2015 21:09:11 GMT

     [ https://issues.apache.org/jira/browse/SPARK-11778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Armbrust updated SPARK-11778:
-------------------------------------
    Assignee: Huaxin Gao

> HiveContext.read.table does not support user-specified database names
> ---------------------------------------------------------------------
>
>                 Key: SPARK-11778
>                 URL: https://issues.apache.org/jira/browse/SPARK-11778
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: Stanislav Hadjiiski
>            Assignee: Huaxin Gao
>            Priority: Critical
>              Labels: releasenotes
>             Fix For: 1.6.0
>
>
> If we have defined a HiveContext instance
> {quote}
> val hiveContext = new org.apache.spark.sql.hive.HiveContext(sparkContext)
> {quote}
> then
> {quote}
> hiveContext.table("db_name.table")
> {quote}
> works but
> {quote}
> hiveContext.read.table("db_name.table")
> {quote}
> throws an {{org.apache.spark.sql.catalyst.analysis.NoSuchTableException}}
> However,
> {quote}
> hiveContext.sql("use db_name")
> hiveContext.read.table("table")
> {quote}
> works as expected



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message