fix: createstb use compress

This commit is contained in:
factosea 2024-04-25 11:06:28 +08:00
parent 032835deec
commit 905042d0aa
1 changed files with 2 additions and 2 deletions

View File

@ -736,8 +736,8 @@ static int32_t taosCreateStb(TAOS* taos, void* meta, int32_t metaLen) {
SSchema* pSchema = req.schemaRow.pSchema + i;
SFieldWithOptions field = {.type = pSchema->type, .flags = pSchema->flags, .bytes = pSchema->bytes};
strcpy(field.name, pSchema->name);
// todo get active compress param
setDefaultOptionsForField(&field);
SColCmpr *p = &req.colCmpr.pColCmpr[i];
field.compress = p->alg;
taosArrayPush(pReq.pColumns, &field);
}
pReq.pTags = taosArrayInit(req.schemaTag.nCols, sizeof(SField));