code: private static AbstractScanPlanNode
      getScanAccessPlanForTable(StmtTableScan tableScan, AccessPath path)
      {
          // build the scan node
          SeqScanPlanNode scanNode = new SeqScanPlanNode(tableScan);
          // build the predicate
          scanNode.setPredicate(path.otherExprs);
          return scanNode;
      }
docs: Get a sequential scan access plan for a table. For multi-site plans/tables,
  scans at all partitions.
  
  @param table The table to scan.
  @param path The access path to access the data in the table (index/scan/etc).
  @return A scan plan node