Skip to content

Commit ccb4922

Browse files
Fix failing tests because of missing semicolon in some of the queries
1 parent b2482a5 commit ccb4922

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/tools/schematool/TestSchemaToolForMetastore.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public void testValidateNullValues() throws Exception {
220220

221221
// Test invalid case
222222
String[] scripts = new String[] {
223-
"update TBLS set SD_ID=null"
223+
"update TBLS set SD_ID=null;"
224224
};
225225
File scriptFile = generateTestScript(scripts);
226226
schemaTool.execSql(scriptFile.getPath());
@@ -308,15 +308,15 @@ public void testValidateSchemaVersions() throws Exception {
308308
boolean isValid = validator.validateSchemaVersions();
309309
// Test an invalid case with multiple versions
310310
String[] scripts = new String[] {
311-
"insert into VERSION values(100, '2.2.0', 'Hive release version 2.2.0')"
311+
"insert into VERSION values(100, '2.2.0', 'Hive release version 2.2.0');"
312312
};
313313
File scriptFile = generateTestScript(scripts);
314314
schemaTool.execSql(scriptFile.getPath());
315315
isValid = validator.validateSchemaVersions();
316316
Assert.assertFalse(isValid);
317317

318318
scripts = new String[] {
319-
"delete from VERSION where VER_ID = 100"
319+
"delete from VERSION where VER_ID = 100;"
320320
};
321321
scriptFile = generateTestScript(scripts);
322322
schemaTool.execSql(scriptFile.getPath());
@@ -325,7 +325,7 @@ public void testValidateSchemaVersions() throws Exception {
325325

326326
// Test an invalid case without version
327327
scripts = new String[] {
328-
"delete from VERSION"
328+
"delete from VERSION;"
329329
};
330330
scriptFile = generateTestScript(scripts);
331331
schemaTool.execSql(scriptFile.getPath());

0 commit comments

Comments
 (0)