Merge pull request #25718 from taosdata/fix/TD-29975

fix(query): set the pk for interp query.
This commit is contained in:
Haojun Liao 2024-05-11 12:28:18 +08:00 committed by GitHub
commit 89c13ac2ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -204,6 +204,11 @@ static bool checkDuplicateTimestamps(STimeSliceOperatorInfo* pSliceInfo, SColumn
SRowKey cur = {.ts = currentTs, .numOfPKs = (pPkCol != NULL)? 1:0};
if (pPkCol != NULL) {
cur.pks[0].type = pPkCol->info.type;
if (IS_VAR_DATA_TYPE(pPkCol->info.type)) {
cur.pks[0].pData = (uint8_t*)colDataGetVarData(pPkCol, rows);
} else {
memcpy(&cur.pks[0].val, colDataGetData(pPkCol, rows), pPkCol->info.bytes);
}
}
// let's discard the duplicated ts