Skip to content

Commit

Permalink
add unit test,spotless formate code (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuw529 committed Apr 8, 2024
1 parent 2b942f7 commit 2be86e0
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@

package org.apache.paimon.hive;

import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.paimon.catalog.AbstractCatalog;
import org.apache.paimon.catalog.Catalog;
import org.apache.paimon.catalog.CatalogContext;
import org.apache.paimon.catalog.CatalogFactory;
import org.apache.paimon.catalog.Identifier;
import org.apache.paimon.fs.FileIO;
import org.apache.paimon.fs.Path;
import org.apache.paimon.fs.hadoop.HadoopFileIO;
import org.apache.paimon.fs.local.LocalFileIO;
import org.apache.paimon.options.CatalogOptions;
import org.apache.paimon.options.Options;
Expand Down Expand Up @@ -151,15 +148,11 @@ public void testCallCreateTableToCreatHiveExternalTable() throws Exception {
hiveCatalog.createTable(identifier, schema, false);

// Drop hive external table
String hiveSql =
String.join(
"\n",
Arrays.asList(
"DROP TABLE " + tableName));
String hiveSql = String.join("\n", Arrays.asList("DROP TABLE " + tableName));
assertThatCode(() -> hiveShell.execute(hiveSql)).doesNotThrowAnyException();

assertThatCode(() -> hiveCatalog.createTable(identifier, schema, false)).doesNotThrowAnyException();

assertThatCode(() -> hiveCatalog.createTable(identifier, schema, false))
.doesNotThrowAnyException();
}

@Test
Expand Down

0 comments on commit 2be86e0

Please sign in to comment.