fix: show table tags from view
This commit is contained in:
parent
3713cc8902
commit
15364e7656
|
@ -4673,7 +4673,7 @@ int32_t translateTable(STranslateContext* pCxt, SNode** pTable, SNode* pJoinPare
|
|||
return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_GET_META_ERROR, tstrerror(code));
|
||||
}
|
||||
#ifdef TD_ENTERPRISE
|
||||
if (TSDB_VIEW_TABLE == pRealTable->pMeta->tableType && (!pCurrSmt->tagScan && !pCxt->pParseCxt->biMode)) {
|
||||
if (TSDB_VIEW_TABLE == pRealTable->pMeta->tableType && (!pCurrSmt->tagScan || pCxt->pParseCxt->biMode)) {
|
||||
return translateView(pCxt, pTable, &name);
|
||||
}
|
||||
code = translateAudit(pCxt, pRealTable, &name);
|
||||
|
|
Loading…
Reference in New Issue