fix incorrect err_code of approx_count_distinct_merge

This commit is contained in:
Zach41
2024-07-29 12:41:58 +00:00
committed by ob-robot
parent 40356f4106
commit be2111e0e4
2 changed files with 10 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public:
int32_t len = 0;
columns.get_payload(row_num, payload, len);
if (OB_UNLIKELY(len != LLC_NUM_BUCKETS)) {
ret = OB_ERR_UNEXPECTED;
ret = OB_INVALID_ARGUMENT;
SQL_LOG(WARN, "unexpected length of input", K(ret), K(len));
} else if (OB_ISNULL(llc_bitmap_buf)) {
// not calculated before, copy from payload