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

Yuming Wang updated SPARK-29498:
--------------------------------
    Description: 
How to reproduce:

{code:scala}
  test("CatalogTable to HiveTable should not change the table's ownership") {
    val catalog = newBasicCatalog()
      val identifier = TableIdentifier("test_table_owner", Some("default"))
      val owner = "Apache Spark"
      val newTable = CatalogTable(
        identifier,
        tableType = CatalogTableType.EXTERNAL,
        storage = CatalogStorageFormat(
          locationUri = None,
          inputFormat = None,
          outputFormat = None,
          serde = None,
          compressed = false,
          properties = Map.empty),
        owner = owner,
        schema = new StructType().add("i", "int"),
        provider = Some("hive"))

    catalog.createTable(newTable, false)
    assert(catalog.getTable("default", "test_table_owner").owner === owner)
  }
{code}


{noformat}
[info] - CatalogTable to HiveTable should not change the table's ownership *** 
FAILED *** (267 milliseconds)
[info]   "[yumwang]" did not equal "[Apache Spark]" 
(HiveExternalCatalogSuite.scala:136)
{noformat}


  was:
How to reproduce:



> CatalogTable to HiveTable should not change the table's ownership
> -----------------------------------------------------------------
>
>                 Key: SPARK-29498
>                 URL: https://issues.apache.org/jira/browse/SPARK-29498
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.4, 2.4.4
>            Reporter: Kent Yao
>            Priority: Major
>
> How to reproduce:
> {code:scala}
>   test("CatalogTable to HiveTable should not change the table's ownership") {
>     val catalog = newBasicCatalog()
>       val identifier = TableIdentifier("test_table_owner", Some("default"))
>       val owner = "Apache Spark"
>       val newTable = CatalogTable(
>         identifier,
>         tableType = CatalogTableType.EXTERNAL,
>         storage = CatalogStorageFormat(
>           locationUri = None,
>           inputFormat = None,
>           outputFormat = None,
>           serde = None,
>           compressed = false,
>           properties = Map.empty),
>         owner = owner,
>         schema = new StructType().add("i", "int"),
>         provider = Some("hive"))
>     catalog.createTable(newTable, false)
>     assert(catalog.getTable("default", "test_table_owner").owner === owner)
>   }
> {code}
> {noformat}
> [info] - CatalogTable to HiveTable should not change the table's ownership 
> *** FAILED *** (267 milliseconds)
> [info]   "[yumwang]" did not equal "[Apache Spark]" 
> (HiveExternalCatalogSuite.scala:136)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to