Merge pull request #23580 from taosdata/szhou/fix/3.0/select-tags-const
fix: select tags const from table
This commit is contained in:
commit
7e89e55ba0
|
@ -266,7 +266,7 @@ static EScanType getScanType(SLogicPlanContext* pCxt, SNodeList* pScanPseudoCols
|
|||
|
||||
if (NULL == pScanCols) {
|
||||
if (NULL == pScanPseudoCols) {
|
||||
return SCAN_TYPE_TABLE;
|
||||
return (!tagScan) ? SCAN_TYPE_TABLE : SCAN_TYPE_TAG;
|
||||
}
|
||||
return FUNCTION_TYPE_BLOCK_DIST_INFO == ((SFunctionNode*)nodesListGetNode(pScanPseudoCols, 0))->funcType
|
||||
? SCAN_TYPE_BLOCK_INFO
|
||||
|
|
|
@ -164,4 +164,9 @@ sql select count(*) from (select tags ts from stb34)
|
|||
if $data00 != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
sql select tags 2 from stb34
|
||||
if $rows != 1 then
|
||||
return -1
|
||||
endi
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
Loading…
Reference in New Issue