@Override
    public List<RemoteFileInfo> getRemoteFiles(Table table, GetRemoteFilesParams params) {
        List<Partition> partitions = buildGetRemoteFilesPartitions(table, params);

        boolean useCache = true;
        if (table instanceof HiveTable) {
            useCache = ((HiveTable) table).isUseMetadataCache();
        }
        // if we disable cache explicitly
        if (!params.isUseCache()) {
            useCache = false;
        }

        GetRemoteFilesParams updatedParams = params.copy();
        updatedParams.setUseCache(useCache);
        return fileOps.getRemoteFiles(table, partitions, updatedParams);
    }
@Test
    public void testGetFileWithSubdir() throws StarRocksConnectorException {
        RemotePathKey pathKey = new RemotePathKey("hdfs://127.0.0.1:10000/hive.db", true);
        Map<RemotePathKey, List<RemoteFileDesc>> files = hiveRemoteFileIO.getRemoteFiles(pathKey);
        List<RemoteFileDesc> remoteFileDescs = files.get(pathKey);
        Assert.assertEquals(1, remoteFileDescs.size());
        Assert.assertEquals("hive_tbl/000000_0", remoteFileDescs.get(0).getFileName());
    }