@@ -139,7 +139,7 @@ private CatalogTable newCatalogTable(
139139 return new ResolvedCatalogTable (origin , resolvedSchema );
140140 }
141141
142- private CatalogMaterializedTable newCatalogMaterializedTable (
142+ protected CatalogMaterializedTable newCatalogMaterializedTable (
143143 ResolvedSchema resolvedSchema ,
144144 CatalogMaterializedTable .RefreshMode refreshMode ,
145145 Map <String , String > options ) {
@@ -306,7 +306,8 @@ void testCreateTable() throws Exception {
306306 assertThatThrownBy (() -> catalog .renameTable (this .tableInDefaultDb , "newName" , false ))
307307 .isInstanceOf (UnsupportedOperationException .class );
308308
309- // Test lake table handling - should throw TableNotExistException for non-existent lake
309+ // Test lake table handling - should throw TableNotExistException for
310+ // non-existent lake
310311 // table
311312 ObjectPath lakePath = new ObjectPath (DEFAULT_DB , "regularTable$lake" );
312313 assertThatThrownBy (() -> catalog .getTable (lakePath ))
@@ -332,7 +333,8 @@ void testCreateAlreadyExistsLakeTable() throws Exception {
332333 // drop fluss table
333334 catalog .dropTable (lakeTablePath , false );
334335 assertThat (catalog .tableExists (lakeTablePath )).isFalse ();
335- // create the table again should be ok, because the existing lake table is matched
336+ // create the table again should be ok, because the existing lake table is
337+ // matched
336338 catalog .createTable (lakeTablePath , table , false );
337339 }
338340
@@ -547,7 +549,8 @@ void testCreateUnsupportedMaterializedTable() {
547549 this .createSchema (),
548550 CatalogMaterializedTable .RefreshMode .FULL ,
549551 Collections .emptyMap ());
550- // Fluss doesn't support insert overwrite in batch mode now, so full refresh mode is not
552+ // Fluss doesn't support insert overwrite in batch mode now, so full refresh
553+ // mode is not
551554 // supported now.
552555 assertThatThrownBy (
553556 () ->
@@ -615,7 +618,8 @@ void testDatabase() throws Exception {
615618 .hasMessage ("Database %s in catalog %s is not empty." , "db1" , CATALOG_NAME );
616619 // should be ok since we set cascade = true
617620 catalog .dropDatabase ("db1" , false , true );
618- // drop it again, should throw exception since db1 is not exist and we set ignoreIfNotExists
621+ // drop it again, should throw exception since db1 is not exist and we set
622+ // ignoreIfNotExists
619623 // = false
620624 assertThatThrownBy (() -> catalog .dropDatabase ("db1" , false , true ))
621625 .isInstanceOf (DatabaseNotExistException .class )
@@ -627,7 +631,8 @@ void testDatabase() throws Exception {
627631 catalog .dropDatabase ("db2" , false , true );
628632 // should be empty
629633 assertThat (catalog .listDatabases ()).isEqualTo (Collections .singletonList (DEFAULT_DB ));
630- // should throw exception since the db is not exist and we set ignoreIfNotExists = false
634+ // should throw exception since the db is not exist and we set ignoreIfNotExists
635+ // = false
631636 assertThatThrownBy (() -> catalog .listTables ("unknown" ))
632637 .isInstanceOf (DatabaseNotExistException .class )
633638 .hasMessage ("Database %s does not exist in Catalog %s." , "unknown" , CATALOG_NAME );
@@ -846,7 +851,7 @@ void testConnectionFailureHandling() {
846851
847852 @ Test
848853 void testStatisticsOperations () throws Exception {
849- // Statistics testing
854+ // Statistics testing
850855 CatalogTable table = newCatalogTable (Collections .emptyMap ());
851856 ObjectPath tablePath = new ObjectPath (DEFAULT_DB , "statsTable" );
852857 catalog .createTable (tablePath , table , false );
0 commit comments