Code review comment: ```suggestion                 boolean isEnableMemtableOnSinkNode = ((OlapTable) table).getTableProperty().getUseSchemaLightChange()                         ? this.enableMemTableOnSinkNode: false; ```

Code before review:
private void createLoadingTask(Database db, BrokerPendingTaskAttachment attachment) throws UserException {
List<Table> tableList = db.getTablesOnIdOrderOrThrowException(
Lists.newArrayList(fileGroupAggInfo.getAllTableIds()));
List<LoadLoadingTask> newLoadingTasks = Lists.newArrayList();
this.jobProfile = new Profile("BrokerLoadJob " + id + ". " + label, true);
ProgressManager progressManager = Env.getCurrentProgressManager();
progressManager.registerProgressSimple(String.valueOf(id));
MetaLockUtils.readLockTables(tableList);
try {
for (Map.Entry<FileGroupAggKey, List<BrokerFileGroup>> entry
: fileGroupAggInfo.getAggKeyToFileGroups().entrySet()) {
FileGroupAggKey aggKey = entry.getKey();
List<BrokerFileGroup> brokerFileGroups = entry.getValue();
long tableId = aggKey.getTableId();
OlapTable table = (OlapTable) db.getTableNullable(tableId);
boolean isEnableMemtableOnSinkNode = !((OlapTable) table).getTableProperty().getUseSchemaLightChange()
? false : this.enableMemTableOnSinkNode;
LoadLoadingTask task = new LoadLoadingTask(db, table, brokerDesc,
brokerFileGroups, getDeadlineMs(), getExecMemLimit(),
isStrictMode(), isPartialUpdate(), transactionId, this, getTimeZone(), getTimeout(),
getLoadParallelism(), getSendBatchParallelism(),
getMaxFilterRatio() <= 0, enableProfile ? jobProfile : null, isSingleTabletLoadPerSink(),
useNewLoadScanNode(), getPriority(), isEnableMemtableOnSinkNode);
UUID uuid = UUID.randomUUID();
TUniqueId loadId = new TUniqueId(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
task.init(loadId, attachment.getFileStatusByTable(aggKey),
attachment.getFileNumByTable(aggKey), getUserInfo());
idToTasks.put(task.getSignature(), task);
newLoadingTasks.add(task);
TransactionState txnState = Env.getCurrentGlobalTransactionMgr()
.getTransactionState(dbId, transactionId);
if (txnState == null) {
throw new UserException("txn does not exist: " + transactionId);
}
txnState.addTableIndexes(table);
if (isPartialUpdate()) {
txnState.setSchemaForPartialUpdate(table);
}
}
} finally {
MetaLockUtils.readUnlockTables(tableList);
}
for (LoadTask loadTask : newLoadingTasks) {
Env.getCurrentEnv().getLoadingLoadTaskScheduler().submit(loadTask);
}
}

Line under review: ? false : this.enableMemTableOnSinkNode;

Code after addressing the review:
private void createLoadingTask(Database db, BrokerPendingTaskAttachment attachment) throws UserException {
List<Table> tableList = db.getTablesOnIdOrderOrThrowException(
Lists.newArrayList(fileGroupAggInfo.getAllTableIds()));
List<LoadLoadingTask> newLoadingTasks = Lists.newArrayList();
this.jobProfile = new Profile("BrokerLoadJob " + id + ". " + label, true);
ProgressManager progressManager = Env.getCurrentProgressManager();
progressManager.registerProgressSimple(String.valueOf(id));
MetaLockUtils.readLockTables(tableList);
try {
for (Map.Entry<FileGroupAggKey, List<BrokerFileGroup>> entry
: fileGroupAggInfo.getAggKeyToFileGroups().entrySet()) {
FileGroupAggKey aggKey = entry.getKey();
List<BrokerFileGroup> brokerFileGroups = entry.getValue();
long tableId = aggKey.getTableId();
OlapTable table = (OlapTable) db.getTableNullable(tableId);
boolean isEnableMemtableOnSinkNode = ((OlapTable) table).getTableProperty().getUseSchemaLightChange()
? this.enableMemTableOnSinkNode : false;
LoadLoadingTask task = new LoadLoadingTask(db, table, brokerDesc,
brokerFileGroups, getDeadlineMs(), getExecMemLimit(),
isStrictMode(), isPartialUpdate(), transactionId, this, getTimeZone(), getTimeout(),
getLoadParallelism(), getSendBatchParallelism(),
getMaxFilterRatio() <= 0, enableProfile ? jobProfile : null, isSingleTabletLoadPerSink(),
useNewLoadScanNode(), getPriority(), isEnableMemtableOnSinkNode);
UUID uuid = UUID.randomUUID();
TUniqueId loadId = new TUniqueId(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
task.init(loadId, attachment.getFileStatusByTable(aggKey),
attachment.getFileNumByTable(aggKey), getUserInfo());
idToTasks.put(task.getSignature(), task);
newLoadingTasks.add(task);
TransactionState txnState = Env.getCurrentGlobalTransactionMgr()
.getTransactionState(dbId, transactionId);
if (txnState == null) {
throw new UserException("txn does not exist: " + transactionId);
}
txnState.addTableIndexes(table);
if (isPartialUpdate()) {
txnState.setSchemaForPartialUpdate(table);
}
}
} finally {
MetaLockUtils.readUnlockTables(tableList);
}
for (LoadTask loadTask : newLoadingTasks) {
Env.getCurrentEnv().getLoadingLoadTaskScheduler().submit(loadTask);
}
}