[jira] [Commented] (SPARK-17369) MetastoreRelation toJSON throws exception

2016-09-05 Thread Apache Spark (JIRA)

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

Apache Spark commented on SPARK-17369:
--

User 'clockfly' has created a pull request for this issue:
https://github.com/apache/spark/pull/14968

> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-17369) MetastoreRelation toJSON throws exception

2016-09-05 Thread Yin Huai (JIRA)

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

Yin Huai commented on SPARK-17369:
--

Let'e create a patch for branch 2.0. I have reverted the current one because it 
breaks the 2.0 build.

> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-17369) MetastoreRelation toJSON throws exception

2016-09-01 Thread Apache Spark (JIRA)

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

Apache Spark commented on SPARK-17369:
--

User 'clockfly' has created a pull request for this issue:
https://github.com/apache/spark/pull/14928

> 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
>Priority: Minor
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org