Merge pull request #4438 from taosdata/feature/query

[TD-2281]<fix>: filter unsupported mixed up query functions.
This commit is contained in:
haojun Liao 2020-12-04 13:18:50 +08:00 committed by GitHub
commit 8fdcba9f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -2835,6 +2835,10 @@ static bool functionCompatibleCheck(SQueryInfo* pQueryInfo, bool joinQuery) {
if (functionCompatList[functionId] != factor) {
return false;
} else {
if (factor == -1) { // two functions with the same -1 flag
return false;
}
}
if (functionId == TSDB_FUNC_LAST_ROW && joinQuery) {