fix compile problem
This commit is contained in:
parent
e0b3e97de6
commit
acf1b14b21
|
@ -98,7 +98,7 @@ struct STSRow2 {
|
||||||
uint8_t flags;
|
uint8_t flags;
|
||||||
int32_t sver;
|
int32_t sver;
|
||||||
uint32_t nData;
|
uint32_t nData;
|
||||||
uint8_t *pData;
|
const uint8_t *pData;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct STSRowBuilder {
|
struct STSRowBuilder {
|
||||||
|
@ -119,7 +119,7 @@ typedef enum { COL_VAL = 0, COL_NONE = 1, COL_NULL = 2 } EColValT;
|
||||||
struct SColVal {
|
struct SColVal {
|
||||||
EColValT type;
|
EColValT type;
|
||||||
uint32_t nData;
|
uint32_t nData;
|
||||||
uint8_t *pData;
|
const uint8_t *pData;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if 1 //====================================
|
#if 1 //====================================
|
||||||
|
|
|
@ -97,7 +97,7 @@ static FORCE_INLINE int kvRowCmprFn(const void *p1, const void *p2) {
|
||||||
|
|
||||||
int32_t tTSRowGet(const STSRow2 *pRow, STSchema *pTSchema, int32_t iCol, SColVal *pColVal) {
|
int32_t tTSRowGet(const STSRow2 *pRow, STSchema *pTSchema, int32_t iCol, SColVal *pColVal) {
|
||||||
uint32_t n;
|
uint32_t n;
|
||||||
uint8_t *p;
|
const uint8_t *p;
|
||||||
uint8_t v;
|
uint8_t v;
|
||||||
int32_t bidx = iCol - 1;
|
int32_t bidx = iCol - 1;
|
||||||
STColumn *pTColumn = &pTSchema->columns[iCol];
|
STColumn *pTColumn = &pTSchema->columns[iCol];
|
||||||
|
@ -132,8 +132,8 @@ int32_t tTSRowGet(const STSRow2 *pRow, STSchema *pTSchema, int32_t iCol, SColVal
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// get bitmap
|
// get bitmap
|
||||||
switch (pRow->flags & 0xf) {
|
|
||||||
p = pRow->pData;
|
p = pRow->pData;
|
||||||
|
switch (pRow->flags & 0xf) {
|
||||||
case TSROW_HAS_NULL | TSROW_HAS_NONE:
|
case TSROW_HAS_NULL | TSROW_HAS_NONE:
|
||||||
v = GET_BIT1(p, bidx);
|
v = GET_BIT1(p, bidx);
|
||||||
if (v == 0) {
|
if (v == 0) {
|
||||||
|
@ -181,8 +181,7 @@ int32_t tTSRowGet(const STSRow2 *pRow, STSchema *pTSchema, int32_t iCol, SColVal
|
||||||
// get real value
|
// get real value
|
||||||
p = p + pTColumn->offset;
|
p = p + pTColumn->offset;
|
||||||
if (IS_VAR_DATA_TYPE(pTColumn->type)) {
|
if (IS_VAR_DATA_TYPE(pTColumn->type)) {
|
||||||
p = pTSchema->flen + *(int32_t *)p;
|
tGetBinary(p + pTSchema->flen + *(int32_t *)p, &p, &n);
|
||||||
tGetBinary(p, &p, &n);
|
|
||||||
} else {
|
} else {
|
||||||
n = pTColumn->bytes;
|
n = pTColumn->bytes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue