fix:[TS-5776]add raw type from consumer
This commit is contained in:
parent
9074a999d0
commit
b5edb79d48
|
@ -74,7 +74,6 @@ endif()
|
|||
# jemalloc
|
||||
if(${JEMALLOC_ENABLED})
|
||||
cat("${TD_SUPPORT_DIR}/jemalloc_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
|
||||
MESSAGE("JEMALLOC_ENABLED is on")
|
||||
endif()
|
||||
|
||||
# msvc regex
|
||||
|
|
|
@ -222,10 +222,7 @@ typedef struct STableDataCxt {
|
|||
STSchema* pSchema;
|
||||
SBoundColInfo boundColsInfo;
|
||||
SArray* pValues;
|
||||
union {
|
||||
SSubmitTbData* pData;
|
||||
void* raw;
|
||||
};
|
||||
SSubmitTbData* pData;
|
||||
SRowKey lastKey;
|
||||
bool ordered;
|
||||
bool duplicateTs;
|
||||
|
|
|
@ -253,7 +253,7 @@ void taos_cleanup(void) {
|
|||
taosCloseRef(id);
|
||||
|
||||
nodesDestroyAllocatorSet();
|
||||
cleanupAppInfo();
|
||||
// cleanupAppInfo();
|
||||
rpcCleanup();
|
||||
tscDebug("rpc cleanup");
|
||||
|
||||
|
|
|
@ -1020,7 +1020,7 @@ static int32_t taosCreateStb(TAOS* taos, void* meta, uint32_t metaLen) {
|
|||
return TSDB_CODE_INVALID_PARA;
|
||||
}
|
||||
SVCreateStbReq req = {0};
|
||||
SDecoder coder;
|
||||
SDecoder coder = {0};
|
||||
SMCreateStbReq pReq = {0};
|
||||
int32_t code = TSDB_CODE_SUCCESS;
|
||||
SRequestObj* pRequest = NULL;
|
||||
|
|
|
@ -286,7 +286,7 @@ typedef struct {
|
|||
} SVgroupSaveInfo;
|
||||
|
||||
static TdThreadOnce tmqInit = PTHREAD_ONCE_INIT; // initialize only once
|
||||
volatile int32_t tmqInitRes = -1; // initialize rsp code
|
||||
volatile int32_t tmqInitRes = 0; // initialize rsp code
|
||||
static SMqMgmt tmqMgmt = {0};
|
||||
|
||||
tmq_conf_t* tmq_conf_new() {
|
||||
|
@ -2364,10 +2364,6 @@ static SMqRspObj* buildRsp(SMqPollRspWrapper* pollRspWrapper){
|
|||
SMqDataRsp dataRsp;
|
||||
SMqMetaRsp metaRsp;
|
||||
SMqBatchMetaRsp batchMetaRsp;
|
||||
struct{
|
||||
int32_t len;
|
||||
void* rawData;
|
||||
};
|
||||
} MEMSIZE;
|
||||
|
||||
SMqRspObj* pRspObj = taosMemoryCalloc(1, sizeof(SMqRspObj));
|
||||
|
|
|
@ -11416,9 +11416,6 @@ int32_t tDecodeMqDataRspCommon(SDecoder *pDecoder, SMqDataRsp *pRsp) {
|
|||
if (taosArrayPush(pRsp->blockData, &data) == NULL) {
|
||||
TAOS_CHECK_EXIT(terrno);
|
||||
}
|
||||
// for (int m= 0; m < 56; m++){
|
||||
// printf("decode data[%d] = %d\n", m, *((int8_t *)data+18+m));
|
||||
// }
|
||||
int32_t len = bLen;
|
||||
if (taosArrayPush(pRsp->blockDataLen, &len) == NULL) {
|
||||
TAOS_CHECK_EXIT(terrno);
|
||||
|
|
|
@ -352,7 +352,7 @@ static void tqProcessSubData(STQ* pTq, STqHandle* pHandle, SMqDataRsp* pRsp, int
|
|||
}
|
||||
|
||||
// this submit data is metadata and previous data is data
|
||||
if (rawList != NULL && *totalRows > 0 && pSubmitTbData->pCreateTbReq != NULL && taosArrayGetSize(pBlocks) > 0){
|
||||
if (rawList != NULL && *totalRows > 0 && pSubmitTbData->pCreateTbReq != NULL && taosArrayGetSize(pBlocks) > 0 && pRsp->createTableNum <= 1){
|
||||
tqDebug("poll rawdata split,vgId:%d, uid:%" PRId64 ", this submit data is metadata and previous data is data", pTq->pVnode->config.vgId, pExec->pTqReader->lastBlkUid);
|
||||
terrno = TSDB_CODE_TMQ_DUPLICATE_UID;
|
||||
pRsp->createTableNum = 0;
|
||||
|
|
|
@ -67,7 +67,7 @@ class TDTestCase:
|
|||
tdSql.checkData(1, 5, "sttb4")
|
||||
|
||||
tdSql.query("select * from stt order by ts")
|
||||
tdSql.checkRows(3)
|
||||
tdSql.checkRows(5)
|
||||
tdSql.checkData(0, 1, 1)
|
||||
tdSql.checkData(2, 1, 21)
|
||||
tdSql.checkData(0, 2, 2)
|
||||
|
@ -98,7 +98,7 @@ class TDTestCase:
|
|||
tdSql.checkData(1, 5, "sttb4")
|
||||
|
||||
tdSql.query("select * from stt order by ts")
|
||||
tdSql.checkRows(3)
|
||||
tdSql.checkRows(5)
|
||||
tdSql.checkData(0, 1, 1)
|
||||
tdSql.checkData(2, 1, 21)
|
||||
tdSql.checkData(0, 2, 2)
|
||||
|
|
|
@ -427,7 +427,7 @@ int buildDatabase(TAOS* pConn, TAOS_RES* pRes) {
|
|||
|
||||
pRes =
|
||||
taos_query(pConn,
|
||||
"insert into stt1 values(now - 2s, 3, 2, 'stt1')");
|
||||
"insert into stt1 values(now + 322s, 3, 2, 'stt1')");
|
||||
if (taos_errno(pRes) != 0) {
|
||||
printf("failed to create child table stt1, reason:%s\n", taos_errstr(pRes));
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue