public TriggerTableResp getTriggerTable(GetTriggerTablePlan req) {
    if (req.isOnlyStateful()) {
      return new TriggerTableResp(
          new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode()),
          triggerTable.getAllStatefulTriggerInformation());
    } else {
      return new TriggerTableResp(
          new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode()),
          triggerTable.getAllTriggerInformation());
    }
  }
Validate whether the trigger can be dropped.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/TriggerInfo.java