[td-11818] select *
This commit is contained in:
parent
1832a50932
commit
1145d1a0ea
|
@ -259,7 +259,7 @@ int32_t scheduleQuery(SRequestObj* pRequest, SQueryDag* pDag) {
|
||||||
|
|
||||||
SArray *execNode = taosArrayInit(4, sizeof(SQueryNodeAddr));
|
SArray *execNode = taosArrayInit(4, sizeof(SQueryNodeAddr));
|
||||||
|
|
||||||
SQueryNodeAddr addr = {.numOfEps = 1, .inUse = 0, .nodeId = 1};
|
SQueryNodeAddr addr = {.numOfEps = 1, .inUse = 0, .nodeId = 2};
|
||||||
addr.epAddr[0].port = 6030;
|
addr.epAddr[0].port = 6030;
|
||||||
strcpy(addr.epAddr[0].fqdn, "localhost");
|
strcpy(addr.epAddr[0].fqdn, "localhost");
|
||||||
|
|
||||||
|
|
|
@ -5012,9 +5012,14 @@ static SSDataBlock* doLoadRemoteData(void* param, bool* newgroup) {
|
||||||
|
|
||||||
size_t len = pExchangeInfo->pRsp->numOfRows * pColInfoData->info.bytes;
|
size_t len = pExchangeInfo->pRsp->numOfRows * pColInfoData->info.bytes;
|
||||||
memcpy(tmp, pData, len);
|
memcpy(tmp, pData, len);
|
||||||
|
|
||||||
|
pColInfoData->pData = tmp;
|
||||||
pData += len;
|
pData += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pRes->info.numOfCols = pOperator->numOfOutput;
|
||||||
|
pRes->info.rows = pExchangeInfo->pRsp->numOfRows;
|
||||||
|
|
||||||
return pExchangeInfo->pResult;
|
return pExchangeInfo->pResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -559,10 +559,10 @@ static bool timeWindowFromJson(const cJSON* json, void* obj) {
|
||||||
STimeWindow* win = (STimeWindow*)obj;
|
STimeWindow* win = (STimeWindow*)obj;
|
||||||
|
|
||||||
char* pStartKey = getString(json, jkTimeWindowStartKey);
|
char* pStartKey = getString(json, jkTimeWindowStartKey);
|
||||||
win->skey = strtoll(pStartKey, NULL, 10);
|
win->skey = strtoul(pStartKey, NULL, 10);
|
||||||
|
|
||||||
char* pEndKey = getString(json, jkTimeWindowEndKey);
|
char* pEndKey = getString(json, jkTimeWindowEndKey);
|
||||||
win->ekey = strtoll(pEndKey, NULL, 10);
|
win->ekey = strtoul(pEndKey, NULL, 10);
|
||||||
|
|
||||||
tfree(pStartKey);
|
tfree(pStartKey);
|
||||||
tfree(pEndKey);
|
tfree(pEndKey);
|
||||||
|
@ -783,7 +783,7 @@ static bool nodeAddrFromJson(const cJSON* json, void* obj) {
|
||||||
pSource->taskId = getNumber(json, jkNodeTaskId);
|
pSource->taskId = getNumber(json, jkNodeTaskId);
|
||||||
|
|
||||||
char* pSchedId = getString(json, jkNodeTaskSchedId);
|
char* pSchedId = getString(json, jkNodeTaskSchedId);
|
||||||
pSource->schedId = strtoll(pSchedId, NULL, 10);
|
pSource->schedId = strtoul(pSchedId, NULL, 10);
|
||||||
tfree(pSchedId);
|
tfree(pSchedId);
|
||||||
|
|
||||||
bool res = fromObject(json, jkNodeAddr, queryNodeAddrFromJson, &pSource->addr, true);
|
bool res = fromObject(json, jkNodeAddr, queryNodeAddrFromJson, &pSource->addr, true);
|
||||||
|
@ -1032,7 +1032,7 @@ static bool subplanIdFromJson(const cJSON* json, void* obj) {
|
||||||
SSubplanId* id = (SSubplanId*)obj;
|
SSubplanId* id = (SSubplanId*)obj;
|
||||||
|
|
||||||
char* queryId = getString(json, jkIdQueryId);
|
char* queryId = getString(json, jkIdQueryId);
|
||||||
id->queryId = strtoll(queryId, NULL, 0);
|
id->queryId = strtoul(queryId, NULL, 0);
|
||||||
tfree(queryId);
|
tfree(queryId);
|
||||||
|
|
||||||
id->templateId = getNumber(json, jkIdTemplateId);
|
id->templateId = getNumber(json, jkIdTemplateId);
|
||||||
|
|
|
@ -258,6 +258,8 @@ int32_t qwAddTaskCtxImpl(SQWorkerMgmt *mgmt, uint64_t sId, uint64_t qId, uint64_
|
||||||
char id[sizeof(qId) + sizeof(tId)] = {0};
|
char id[sizeof(qId) + sizeof(tId)] = {0};
|
||||||
QW_SET_QTID(id, qId, tId);
|
QW_SET_QTID(id, qId, tId);
|
||||||
|
|
||||||
|
printf("%"PRIx64", tid:%"PRIx64"\n", qId, tId);
|
||||||
|
|
||||||
SQWTaskCtx nctx = {0};
|
SQWTaskCtx nctx = {0};
|
||||||
|
|
||||||
QW_LOCK(QW_WRITE, &mgmt->ctxLock);
|
QW_LOCK(QW_WRITE, &mgmt->ctxLock);
|
||||||
|
|
Loading…
Reference in New Issue