fix: enterprise/community bi support

This commit is contained in:
slzhou 2023-09-22 14:31:47 +08:00
parent 72307ab877
commit 18f8e0dc8d
2 changed files with 4 additions and 2 deletions

View File

@ -47,6 +47,8 @@ typedef struct STranslateContext {
} STranslateContext;
int32_t biRewriteSelectStar(STranslateContext* pCxt, SSelectStmt* pSelect);
bool isStar(SNode* pNode);
bool isTableStar(SNode* pNode);
#ifdef __cplusplus
}

View File

@ -1789,12 +1789,12 @@ static int32_t translateBlockDistFunc(STranslateContext* pCtx, SFunctionNode* pF
return TSDB_CODE_SUCCESS;
}
static bool isStar(SNode* pNode) {
bool isStar(SNode* pNode) {
return (QUERY_NODE_COLUMN == nodeType(pNode)) && ('\0' == ((SColumnNode*)pNode)->tableAlias[0]) &&
(0 == strcmp(((SColumnNode*)pNode)->colName, "*"));
}
static bool isTableStar(SNode* pNode) {
bool isTableStar(SNode* pNode) {
return (QUERY_NODE_COLUMN == nodeType(pNode)) && ('\0' != ((SColumnNode*)pNode)->tableAlias[0]) &&
(0 == strcmp(((SColumnNode*)pNode)->colName, "*"));
}