5959class TestConversionService {
6060 private static final String SOURCE_NAME = "users" ;
6161 private static final String SOURCE_PATH = "s3://bucket/tables/users" ;
62+ private static final String SOURCE_DATA_PATH = "s3://bucket/tables/users/data" ;
6263 private static final String HUDI_META_PATH = "s3://bucket/tables/users/.hoodie" ;
6364 private static final String ICEBERG_META_PATH =
6465 "s3://bucket/tables/users/metadata/v1.metadata.json" ;
@@ -111,6 +112,7 @@ void convertToTargetHudi() {
111112 .sourceFormat (TableFormat .DELTA )
112113 .sourceTableName (SOURCE_NAME )
113114 .sourceTablePath (SOURCE_PATH )
115+ .sourceDataPath (SOURCE_DATA_PATH )
114116 .targetFormats (Collections .singletonList (TableFormat .HUDI ))
115117 .build ();
116118
@@ -120,7 +122,7 @@ void convertToTargetHudi() {
120122 when (provider .getConversionSourceInstance (any ())).thenReturn (conversionSrc );
121123 when (conversionSrc .getCurrentTable ()).thenReturn (internalTbl );
122124
123- when (internalTbl .getName ()).thenReturn (TableFormat .HUDI );
125+ when (internalTbl .getTableFormat ()).thenReturn (TableFormat .HUDI );
124126 when (internalTbl .getLatestMetdataPath ()).thenReturn (HUDI_META_PATH );
125127 when (internalTbl .getReadSchema ()).thenReturn (internalSchema );
126128
@@ -146,6 +148,7 @@ void convertToTargetIceberg() {
146148 .sourceFormat (TableFormat .DELTA )
147149 .sourceTableName (SOURCE_NAME )
148150 .sourceTablePath (SOURCE_PATH )
151+ .sourceDataPath (SOURCE_DATA_PATH )
149152 .targetFormats (Collections .singletonList (TableFormat .ICEBERG ))
150153 .build ();
151154
@@ -157,7 +160,7 @@ void convertToTargetIceberg() {
157160 when (provider .getConversionSourceInstance (any ())).thenReturn (conversionSrc );
158161 when (conversionSrc .getCurrentTable ()).thenReturn (internalTbl );
159162
160- when (internalTbl .getName ()).thenReturn (TableFormat .ICEBERG );
163+ when (internalTbl .getTableFormat ()).thenReturn (TableFormat .ICEBERG );
161164 when (internalTbl .getLatestMetdataPath ()).thenReturn (ICEBERG_META_PATH );
162165 when (internalTbl .getReadSchema ()).thenReturn (internalSchema );
163166
@@ -185,6 +188,7 @@ void convertToTargetDelta() {
185188 .sourceFormat (TableFormat .ICEBERG )
186189 .sourceTableName (SOURCE_NAME )
187190 .sourceTablePath (SOURCE_PATH )
191+ .sourceDataPath (SOURCE_DATA_PATH )
188192 .targetFormats (Collections .singletonList (TableFormat .DELTA ))
189193 .build ();
190194
@@ -194,7 +198,7 @@ void convertToTargetDelta() {
194198 when (provider .getConversionSourceInstance (any ())).thenReturn (conversionSrc );
195199 when (conversionSrc .getCurrentTable ()).thenReturn (internalTbl );
196200
197- when (internalTbl .getName ()).thenReturn (TableFormat .DELTA );
201+ when (internalTbl .getTableFormat ()).thenReturn (TableFormat .DELTA );
198202 when (internalTbl .getLatestMetdataPath ()).thenReturn (DELTA_META_PATH );
199203 when (internalTbl .getReadSchema ()).thenReturn (internalSchema );
200204
0 commit comments