private static void validateSchema(final Delete node, final MPPQueryContext queryContext) {
    final String tableName = node.getTable().getName().getSuffix();
    final String databaseName = getDatabaseName(node, queryContext);
    node.setDatabaseName(databaseName);

    final TsTable table = DataNodeTableCache.getInstance().getTable(databaseName, tableName);
    if (table == null) {
      throw new SemanticException("Table " + tableName + " not found");
    }

    DataNodeTreeViewSchemaUtils.checkTableInWrite(databaseName, table);
    // Maybe set by pipe transfer
    if (Objects.isNull(node.getTableDeletionEntries())) {
      node.setTableDeletionEntries(
          parseExpressions2ModEntries(node.getWhere().orElse(null), table));
    }
  }
get analysis according to statement and params
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeUtils.java