提交 4c8955f4 编写于 作者: H hjxilinx

[td-225] remove macro define

上级 b58ac0e7
......@@ -1032,55 +1032,6 @@ void tscJoinQueryCallback(void* param, TAOS_RES* tres, int code) {
/////////////////////////////////////////////////////////////////////////////////////////
static void tscRetrieveDataRes(void *param, TAOS_RES *tres, int code);
//static void ddx(TAOS* taos) {
//
// SSqlCmd* pCmd = &pSql->cmd;
//
// tscPartiallyFreeSqlObj(pSql);
//// tscTrace("continue parse sql: %s", pSql->cmd.curSql);
//
// SQueryInfo* pQueryInfo = NULL;
// int32_t code = tscGetQueryInfoDetailSafely(pCmd, pCmd->clauseIndex, &pQueryInfo);
// assert(code == TSDB_CODE_SUCCESS);
//
// STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
//
// if (UTIL_TABLE_IS_SUPERTABLE(pTableMetaInfo)) { // return the tableId & tag
// SSchema s = {0};
// SColumnIndex index = {0};
//
// size_t numOfTags = taosArrayGetSize(pTableMetaInfo->tagColList);
// for (int32_t i = 0; i < numOfTags; ++i) {
// SColumn* c = taosArrayGetP(pTableMetaInfo->tagColList, i);
// index = (SColumnIndex){.tableIndex = 0, .columnIndex = c->colIndex.columnIndex};
//
// SSchema* pTagSchema = tscGetTableTagSchema(pTableMetaInfo->pTableMeta);
// s = pTagSchema[c->colIndex.columnIndex];
//
// int16_t bytes = 0;
// int16_t type = 0;
// int16_t inter = 0;
//
// getResultDataInfo(s.type, s.bytes, TSDB_FUNC_TID_TAG, 0, &type, &bytes, &inter, 0, 0);
//
// s.type = type;
// s.bytes = bytes;
//// pSupporter->tagSize = s.bytes;
// }
//
// // set get tags query type
// TSDB_QUERY_SET_TYPE(pQueryInfo->type, TSDB_QUERY_TYPE_TAG_FILTER_QUERY);
//
// tscAddSpecialColumnForSelect(pQueryInfo, 0, TSDB_FUNC_TID_TAG, &index, &s, TSDB_COL_TAG);
// size_t numOfCols = taosArrayGetSize(pQueryInfo->colList);
//
// tscTrace( "%p vgroupIndex:%d, type:%d, tid_tag query to retrieve (tableId, tags), "
// "exprInfo:%d, colList:%d, fieldsInfo:%d, name:%s",
// pSql, pTableMetaInfo->vgroupIndex, pQueryInfo->type, tscSqlExprNumOfExprs(pQueryInfo),
// numOfCols, pQueryInfo->fieldsInfo.numOfOutput, pQueryInfo->pTableMetaInfo[0]->name);
// }
//}
static SSqlObj *tscCreateSqlObjForSubquery(SSqlObj *pSql, SRetrieveSupport *trsupport, SSqlObj *prevSqlObj);
// todo merge with callback
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册