docs: static private boolean deleteIsTruncate(ParsedDeleteStmt stmt, AbstractPlanNode plan) {
          if (!(plan instanceof SeqScanPlanNode)) {
              return false;
          }
  
          // Assume all index scans have filters in this context, so only consider seq scans.
          SeqScanPlanNode seqScanNode = (SeqScanPlanNode)plan;
          if (seqScanNode.getPredicate() != null) {
              return false;
          }
  
          if (stmt.hasLimitOrOffset()) {
              return false;
          }
  
          return true;
      }