Skip to content

Commit

Permalink
improvement: make all spark sql keyword uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ichuniq committed Mar 5, 2024
1 parent 3b700b4 commit f2e0d8d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SparkIT extends SparkEnvIT {

@BeforeEach
void init() {
sql("use " + hiveCatalogName);
sql("USE " + hiveCatalogName);
}

@Test
Expand All @@ -33,7 +33,7 @@ void testLoadCatalogs() {
@Test
void testCreateAndLoadSchema() {
String testDatabaseName = "t_create1";
sql("create database " + testDatabaseName);
sql("CREATE DATABASE " + testDatabaseName);
Map<String, String> databaseMeta = getDatabaseMetadata(testDatabaseName);
Assertions.assertFalse(databaseMeta.containsKey("Comment"));
Assertions.assertTrue(databaseMeta.containsKey("Location"));
Expand Down Expand Up @@ -63,11 +63,11 @@ void testDropSchema() {
Set<String> 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));

Expand Down

0 comments on commit f2e0d8d

Please sign in to comment.