diff --git a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/spark/SparkIT.java b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/spark/SparkIT.java index b1fb73d1aa5..02dcf6f27fe 100644 --- a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/spark/SparkIT.java +++ b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/spark/SparkIT.java @@ -21,7 +21,7 @@ public class SparkIT extends SparkEnvIT { @BeforeEach void init() { - sql("use " + hiveCatalogName); + sql("USE " + hiveCatalogName); } @Test @@ -33,7 +33,7 @@ void testLoadCatalogs() { @Test void testCreateAndLoadSchema() { String testDatabaseName = "t_create1"; - sql("create database " + testDatabaseName); + sql("CREATE DATABASE " + testDatabaseName); Map databaseMeta = getDatabaseMetadata(testDatabaseName); Assertions.assertFalse(databaseMeta.containsKey("Comment")); Assertions.assertTrue(databaseMeta.containsKey("Location")); @@ -63,11 +63,11 @@ void testDropSchema() { Set databases = getDatabases(); Assertions.assertFalse(databases.contains(testDatabaseName)); - sql("create database " + testDatabaseName); + sql("CREATE DATABASE " + testDatabaseName); databases = getDatabases(); Assertions.assertTrue(databases.contains(testDatabaseName)); - sql("drop database " + testDatabaseName); + sql("DROP DATABASE " + testDatabaseName); databases = getDatabases(); Assertions.assertFalse(databases.contains(testDatabaseName));