@@ -424,8 +424,8 @@ class MasterInstanceTest(testUtils:Connector_TestUtils) {
424
424
/*
425
425
* OverWrite/Append and Read (OWAR) to SQL tables using 2 part names *
426
426
*/
427
- def test_gci__twoPartName_owar () {
428
- val table = s " test_gci_threePartName_owar "
427
+ def test_gci_twoPartName_owar () {
428
+ val table = s " test_gci_twoPartName_owar "
429
429
val twoPartName = testUtils.createTwoPartName(table)
430
430
log.info(s " Tablename is $twoPartName \n " )
431
431
val df = testUtils.create_toy_df()
@@ -437,6 +437,22 @@ class MasterInstanceTest(testUtils:Connector_TestUtils) {
437
437
testUtils.drop_test_table(twoPartName)
438
438
}
439
439
440
+ /*
441
+ * OverWrite/Append and Read (OWAR) to SQL tables using 1 part name within square brackets *
442
+ */
443
+ def test_gci_tbNameInBracket_owar () {
444
+ val table_name = s " [test_gci_tbNameInBracket_owar] "
445
+ log.info(s " Table name is $table_name \n " )
446
+ val df = testUtils.create_toy_df()
447
+ log.info(" Operation Overwrite, append and read\n " )
448
+ testUtils.df_write(df, SaveMode .Overwrite , table_name)
449
+ testUtils.df_write(df, SaveMode .Append , table_name)
450
+ var result = testUtils.df_read(table_name)
451
+ assert(result.count() == 2 * df.count())
452
+ log.info(" test_gci_tbNameInBracket_owar : Exit" )
453
+ testUtils.drop_test_table(table_name)
454
+ }
455
+
440
456
/*
441
457
* The test checks that all supported datatype can be used to create tables
442
458
* Possible SQL Server data type are described at the link below
0 commit comments