@Deprecated
    public void setLoadInfo(Table targetTable,
                            BrokerDesc brokerDesc,
                            List<BrokerFileGroup> fileGroups) {
        this.targetTable = targetTable;
        this.brokerDesc = brokerDesc;
        this.fileGroups = fileGroups;
    }
@Test
    public void testNoFilesFoundOnePath() {
        Analyzer analyzer = new Analyzer(GlobalStateMgr.getCurrentState(), new ConnectContext());
        DescriptorTable descTable = analyzer.getDescTbl();
        TupleDescriptor tupleDesc = descTable.createTupleDescriptor("DestTableTuple");
        List<List<TBrokerFileStatus>> fileStatusesList = Lists.newArrayList();
        fileStatusesList.add(Lists.newArrayList());
        FileScanNode scanNode = new FileScanNode(new PlanNodeId(0), tupleDesc, "FileScanNode",
                fileStatusesList, 0, WarehouseManager.DEFAULT_WAREHOUSE_ID);

        List<String> files = Lists.newArrayList("hdfs://127.0.0.1:9001/file*");
        DataDescription desc =
                new DataDescription("testTable", null, files, null, null, null, "csv", false, null);
        BrokerFileGroup brokerFileGroup = new BrokerFileGroup(desc);
        Deencapsulation.setField(brokerFileGroup, "filePaths", files);
        List<BrokerFileGroup> fileGroups = Lists.newArrayList(brokerFileGroup);
        scanNode.setLoadInfo(jobId, txnId, null, brokerDesc, fileGroups, true, loadParallelInstanceNum);

        ExceptionChecker.expectThrowsWithMsg(UserException.class,
                "No files were found matching the pattern(s) or path(s): 'hdfs://127.0.0.1:9001/file*'",
                () -> Deencapsulation.invoke(scanNode, "getFileStatusAndCalcInstance"));
    }