Skip to content

Commit

Permalink
Add explicit location for the cloned table
Browse files Browse the repository at this point in the history
At the time of this writing, the metastore of the product test
has the location for the `default` schema set to

```
hdfs://hadoop-master:9000/user/hive/warehouse
```

Use an explicit location for the cloned table in order
to avoid writing the cloned table to hdfs.
  • Loading branch information
findinpath committed Apr 5, 2024
1 parent 90ef6e5 commit e8b5a9c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,9 @@ public void testDeletionVectorsAbsolutePath()
onDelta().executeQuery("DELETE FROM default." + baseTableName + " WHERE a = 1 OR a = 3");

// The cloned table has 'p' (absolute path) storageType for deletion vector
onDelta().executeQuery("CREATE TABLE default." + tableName + " SHALLOW CLONE " + baseTableName);
onDelta().executeQuery("" +
"CREATE TABLE default." + tableName + " SHALLOW CLONE " + baseTableName + " " +
"LOCATION 's3://" + bucketName + "/databricks-compatibility-test-clone-" + baseTableName + "'");

List<Row> expected = ImmutableList.of(row(2, 22), row(4, 44));
assertThat(onDelta().executeQuery("SELECT * FROM default." + tableName)).contains(expected);
Expand Down

0 comments on commit e8b5a9c

Please sign in to comment.