提交 32bf5d7c 编写于 作者: S shenglian zhou

Revert "try to fix ubigint percentile range"

This reverts commit a1268020.
上级 ddb2bb67
...@@ -33,7 +33,7 @@ typedef struct MinMaxEntry { ...@@ -33,7 +33,7 @@ typedef struct MinMaxEntry {
union { union {
double dMaxVal; double dMaxVal;
int64_t i64MaxVal; int64_t i64MaxVal;
uint64_t u64MaxVal; int64_t u64MaxVal;
}; };
} MinMaxEntry; } MinMaxEntry;
......
...@@ -67,7 +67,7 @@ static int32_t setBoundingBox(MinMaxEntry* range, int16_t type, double minval, d ...@@ -67,7 +67,7 @@ static int32_t setBoundingBox(MinMaxEntry* range, int16_t type, double minval, d
if (IS_SIGNED_NUMERIC_TYPE(type)) { if (IS_SIGNED_NUMERIC_TYPE(type)) {
range->i64MinVal = (int64_t) minval; range->i64MinVal = (int64_t) minval;
if ((int64_t)maxval > INT64_MAX || (int64_t)maxval == INT64_MIN) { if (maxval > INT64_MAX || (int64_t)maxval == INT64_MIN) {
range->i64MaxVal = INT64_MAX; range->i64MaxVal = INT64_MAX;
} else { } else {
range->i64MaxVal = (int64_t) maxval; range->i64MaxVal = (int64_t) maxval;
...@@ -146,7 +146,7 @@ int32_t tBucketIntHash(tMemBucket *pBucket, const void *value) { ...@@ -146,7 +146,7 @@ int32_t tBucketIntHash(tMemBucket *pBucket, const void *value) {
} }
int32_t tBucketUintHash(tMemBucket *pBucket, const void *value) { int32_t tBucketUintHash(tMemBucket *pBucket, const void *value) {
uint64_t v = 0; int64_t v = 0;
GET_TYPED_DATA(v, uint64_t, pBucket->type, value); GET_TYPED_DATA(v, uint64_t, pBucket->type, value);
int32_t index = -1; int32_t index = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册