Skip to content

Commit

Permalink
[BugFix](JDBC Catalog) fix jdbc catalog query bitmap may cause be cor…
Browse files Browse the repository at this point in the history
…e sometimes (apache#26933) (apache#27018)
  • Loading branch information
GoGoWen authored and gnehil committed Dec 4, 2023
1 parent 4a11f0f commit 6a11e05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions be/src/util/bitmap_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -1264,10 +1264,9 @@ class BitmapValue {
}

static std::string empty_bitmap() {
static BitmapValue bitmap;
std::string buf;
buf.resize(bitmap.getSizeInBytes());
bitmap.write_to(buf.data());
std::string buf(sizeof(BitmapValue), 0);
BitmapValue* bitmap_value = reinterpret_cast<BitmapValue*>(buf.data());
bitmap_value->_type = EMPTY;
return buf;
}

Expand Down

0 comments on commit 6a11e05

Please sign in to comment.