spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-17369) MetastoreRelation toJSON throws exception
Date Tue, 06 Sep 2016 02:52:21 GMT

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

Wenchen Fan updated SPARK-17369:
--------------------------------
    Assignee: Sean Zhong

> MetastoreRelation toJSON throws exception
> -----------------------------------------
>
>                 Key: SPARK-17369
>                 URL: https://issues.apache.org/jira/browse/SPARK-17369
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Sean Zhong
>            Assignee: Sean Zhong
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> MetastoreRelationSuite.toJSON now throws exception.
> test case:
> {code}
> package org.apache.spark.sql.hive
> import org.apache.spark.SparkFunSuite
> import org.apache.spark.sql.catalyst.TableIdentifier
> import org.apache.spark.sql.catalyst.catalog.{CatalogStorageFormat, CatalogTable, CatalogTableType}
> import org.apache.spark.sql.types.{IntegerType, StructField, StructType}
> class MetastoreRelationSuite extends SparkFunSuite {
>   test("makeCopy and toJSON should work") {
>     val table = CatalogTable(
>       identifier = TableIdentifier("test", Some("db")),
>       tableType = CatalogTableType.VIEW,
>       storage = CatalogStorageFormat.empty,
>       schema = StructType(StructField("a", IntegerType, true) :: Nil))
>     val relation = MetastoreRelation("db", "test")(table, null, null)
>     // No exception should be thrown
>     relation.makeCopy(Array("db", "test"))
>     // No exception should be thrown
>     relation.toJSON
>   }
> }
> {code}



--
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