Description
How to reproduce:
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) }
[info] - CatalogTable to HiveTable should not change the table's ownership *** FAILED *** (267 milliseconds) [info] "[yumwang]" did not equal "[Apache Spark]" (HiveExternalCatalogSuite.scala:136)
Attachments
Attachments
Issue Links
- is a clone of
-
SPARK-29405 Alter table / Insert statements should not change a table's ownership
- Resolved
- is duplicated by
-
SPARK-30261 Should not change owner of hive table for some commands like 'alter' operation
- Resolved
- supercedes
-
SPARK-30261 Should not change owner of hive table for some commands like 'alter' operation
- Resolved
- links to