src/backend/logging/loggers/wal_frontend_logger.cpp
/**
 * @brief Read get table based on tuple record
 * @param tuple record
 * @return data table
 */
@brief Read get table based on tuple record
@param tuple record
@return data table
@brief Read get table based on tuple record @param tuple record @return data table
storage::DataTable *GetTable(TupleRecord tuple_record) {
  auto &manager = catalog::Manager::GetInstance();
  storage::Database *db =
      manager.GetDatabaseWithOid(tuple_record.GetDatabaseOid());
  if (!db) {
    return nullptr;
  }
  assert(db);
  auto table = db->GetTableWithOid(tuple_record.GetTableId());
  if (!table) {
    return nullptr;
  }
  assert(table);
  return table;
}
storage :: DataTable * GetTable ( TupleRecord tuple_record ) { auto & manager = catalog :: Manager :: GetInstance ( ) ; storage :: Database * db = manager . GetDatabaseWithOid ( tuple_record . GetDatabaseOid ( ) ) ; if ( ! db ) { return nullptr ; } assert ( db ) ; auto table = db -> GetTableWithOid ( tuple_record . GetTableId ( ) ) ; if ( ! table ) { return nullptr ; } assert ( table ) ; return table ; }
@brief Read get table based on tuple record
 @param tuple record
 @return data table
@brief Read get table based on tuple record @param tuple record @return data table
// Get db, table, schema to insert tuple