From 5a33bdcf31c312b5ad4caac001a63125271107ea Mon Sep 17 00:00:00 2001 From: yanz Date: Thu, 12 Sep 2024 15:17:53 +0800 Subject: [PATCH] fix ut Signed-off-by: yanz --- .../com/starrocks/connector/RemoteFileOperationsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/test/java/com/starrocks/connector/RemoteFileOperationsTest.java b/fe/fe-core/src/test/java/com/starrocks/connector/RemoteFileOperationsTest.java index 4c5aa8ff7221b6..9aab85d390ccc8 100644 --- a/fe/fe-core/src/test/java/com/starrocks/connector/RemoteFileOperationsTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/connector/RemoteFileOperationsTest.java @@ -16,6 +16,7 @@ import com.google.common.collect.Lists; import com.google.common.collect.Maps; +import com.starrocks.catalog.HudiTable; import com.starrocks.common.ExceptionChecker; import com.starrocks.common.FeConstants; import com.starrocks.connector.exception.StarRocksConnectorException; @@ -73,7 +74,8 @@ public void testGetHiveRemoteFiles() { Map partitions = metastore.getPartitionsByNames("db1", "table1", partitionNames); List remoteFileInfos = - ops.getRemoteFiles(null, Lists.newArrayList(partitions.values()), GetRemoteFilesParams.newBuilder().build()); + ops.getRemoteFiles(new HudiTable(), Lists.newArrayList(partitions.values()), + GetRemoteFilesParams.newBuilder().build()); Assert.assertEquals(2, remoteFileInfos.size()); Assert.assertTrue(remoteFileInfos.get(0).toString().contains("emoteFileInfo{format=ORC, files=["));