Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1775. update some univplan index function to new name
Browse files Browse the repository at this point in the history
  • Loading branch information
Librago committed Nov 24, 2020
1 parent 6712e27 commit 6cb439a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions depends/univplan/src/univplan/cwrapper/univplan-c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "dbcommon/log/logger.h"
#include "dbcommon/utils/comp/lz4-compressor.h"
#include "dbcommon/utils/macro.h"

#include "univplan/common/plannode-util.h"
#include "univplan/common/stagize.h"
#include "univplan/common/var-util.h"
Expand Down Expand Up @@ -288,7 +287,7 @@ void univPlanExtScanSetRelId(UnivPlanC *up, uint32_t relId) {

void univPlanExtScanSetIndex(UnivPlanC *up, bool index) {
dynamic_cast<univplan::UnivPlanBuilderExtGSScan *>(up->curNode.get())
->setScanIndex(index);
->setIsIndexScan(index);
}

void univPlanExtScanSetScanType(UnivPlanC *up, int type) {
Expand All @@ -298,7 +297,7 @@ void univPlanExtScanSetScanType(UnivPlanC *up, int type) {

void univPlanExtScanDirection(UnivPlanC *up, int direction) {
dynamic_cast<univplan::UnivPlanBuilderExtGSScan *>(up->curNode.get())
->setDirectionType(univplan::ExternalScanDirection(direction));
->setIndexScanDirection(univplan::ExternalScanDirection(direction));
}

void univPlanExtScanSetIndexName(UnivPlanC *up, const char *indexName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ void UnivPlanBuilderExtGSScan::from(const UnivPlanPlanNodePoly &node) {

void UnivPlanBuilderExtGSScan::setScanRelId(uint32_t id) { ref->set_relid(id); }

void UnivPlanBuilderExtGSScan::setScanIndex(bool index = false) {
void UnivPlanBuilderExtGSScan::setIsIndexScan(bool index = false) {
ref->set_indexscan(index);
}

void UnivPlanBuilderExtGSScan::setIndexScanType(ExternalScanType type) {
ref->set_type(univplan::ExternalScanType(type));
}

void UnivPlanBuilderExtGSScan::setDirectionType(
void UnivPlanBuilderExtGSScan::setIndexScanDirection(
ExternalScanDirection direction) {
ref->set_direction(univplan::ExternalScanDirection(direction));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class UnivPlanBuilderExtGSScan : public UnivPlanBuilderNode {
void setFilterExpr(UnivPlanBuilderExprTree::uptr expr);
std::unique_ptr<UnivPlanBuilderScanTask> addScanTaskAndGetBuilder();
// set magma index info
void setScanIndex(bool index);
void setIsIndexScan(bool index);
void setIndexScanType(ExternalScanType type);
void setDirectionType(ExternalScanDirection direction);
void setIndexScanDirection(ExternalScanDirection direction);
void setIndexName(const char *indexName);
void addIndexQual(UnivPlanBuilderExprTree::uptr exprTree);

Expand Down

0 comments on commit 6cb439a

Please sign in to comment.