<commit_before>/*-------------------------------------------------------------------------
 *
 * mapper_seq_scan.cpp
 * file description
 *
 * Copyright(c) 2015, CMU
 *
 * /peloton/src/backend/bridge/dml/mapper/mapper_seq_scan.cpp
 *
 *-------------------------------------------------------------------------
 */

#include "backend/bridge/dml/mapper/mapper.h"

namespace peloton {
namespace bridge {

//===--------------------------------------------------------------------===//
// Seq Scan
//===--------------------------------------------------------------------===//

/**
 * @brief Convert a Postgres LockRow into a Peloton Node.
 *
 *    currently, we just ignore the lock step, and return the
 *    underlying node
 *
 * @return Pointer to the constructed AbstractPlanNode.
 *
 */
planner::AbstractPlanNode* PlanTransformer::TransformLockRows(
    const LockRowsState* lr_plan_state) {
  assert(nodeTag(lr_plan_state) == T_LockRowsState);

  LOG_INFO("Handle LockRows");

  /* get the underlying plan */
  PlanState* outer_plan_state = outerPlanState(lr_plan_state);

  return PlanTransformer::TransformPlan(outer_plan_state);
}

}  // namespace bridge
}  // namespace peloton<commit_msg>minor fix<commit_after>/*-------------------------------------------------------------------------
 *
 * mapper_seq_scan.cpp
 * file description
 *
 * Copyright(c) 2015, CMU
 *
 * /peloton/src/backend/bridge/dml/mapper/mapper_seq_scan.cpp
 *
 *-------------------------------------------------------------------------
 */

#include "backend/bridge/dml/mapper/mapper.h"

namespace peloton {
namespace bridge {

//===--------------------------------------------------------------------===//
// Seq Scan
//===--------------------------------------------------------------------===//

/**
 * @brief Convert a Postgres LockRow into a Peloton Node.
 *
 *    currently, we just ignore the lock step, and return the
 *    underlying node
 *
 * @return Pointer to the constructed AbstractPlanNode.
 *
 */
planner::AbstractPlanNode* PlanTransformer::TransformLockRows(
    const LockRowsState* lr_plan_state) {
  assert(nodeTag(lr_plan_state) == T_LockRowsState);

  LOG_INFO("Handle LockRows");

  /* get the underlying plan */
  PlanState* outer_plan_state = outerPlanState(lr_plan_state);

  TransformOptions options = kDefaultOptions;
  options.use_projInfo = false;

  return PlanTransformer::TransformPlan(outer_plan_state, options);
}

}  // namespace bridge
}  // namespace peloton
{'fraction_non_alphanumeric': 0.32740501212611156, 'fraction_numerical': 0.0032336297493936943, 'mean_word_length': 1.6218220338983051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7053325', 'n_tokens_mistral': 649, 'n_tokens_neox': 630, 'n_words': 136}