提交 128c1bc5 编写于 作者: H Haojun Liao

[td-225]disable alter wal level after create databases.

上级 cdc85ae8
...@@ -7809,19 +7809,37 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) { ...@@ -7809,19 +7809,37 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) {
meta->tableType = TSDB_TEMP_TABLE; meta->tableType = TSDB_TEMP_TABLE;
STableComInfo *info = &meta->tableInfo; STableComInfo *info = &meta->tableInfo;
info->numOfColumns = numOfColumns;
// todo : row size, numOfTags, numOfCols, tag info
// info->numOfColumns = numOfColumns;
info->precision = pUpstreamTableMetaInfo->pTableMeta->tableInfo.precision; info->precision = pUpstreamTableMetaInfo->pTableMeta->tableInfo.precision;
info->numOfTags = 0; // info->numOfTags = 0;
int32_t n = 0; int32_t n = 0;
for(int32_t i = 0; i < numOfColumns; ++i) { for(int32_t i = 0; i < numOfColumns; ++i) {
SInternalField* pField = tscFieldInfoGetInternalField(&pUpstream->fieldsInfo, i); SInternalField* pField = tscFieldInfoGetInternalField(&pUpstream->fieldsInfo, i);
if (pField->visible) { if (!pField->visible) {
meta->schema[n].bytes = pField->field.bytes; continue;
meta->schema[n].type = pField->field.type; }
meta->schema[n].colId = pField->pExpr->base.resColId;
tstrncpy(meta->schema[n].name, pField->pExpr->base.aliasName, TSDB_COL_NAME_LEN); meta->schema[n].bytes = pField->field.bytes;
n += 1; meta->schema[n].type = pField->field.type;
SExprInfo* pExpr = pField->pExpr;
meta->schema[n].colId = pExpr->base.resColId;
tstrncpy(meta->schema[n].name, pField->pExpr->base.aliasName, TSDB_COL_NAME_LEN);
info->rowSize += meta->schema[n].bytes;
n += 1;
if (pExpr->pExpr != NULL) {
info->numOfColumns += 1;
} else {
if (TSDB_COL_IS_TAG(pExpr->base.colInfo.flag)) {
info->numOfTags += 1;
} else {
info->numOfColumns += 1;
}
} }
} }
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册