From df3781cb1b530d93a6aaaff0f032cf626884f2a5 Mon Sep 17 00:00:00 2001 From: "hs.zhang" <22708345+cangfengzhs@users.noreply.github.com> Date: Wed, 15 Dec 2021 12:41:45 +0800 Subject: [PATCH] fix geo index bound (#3352) Co-authored-by: Doodle <13706157+critical27@users.noreply.github.com> --- src/common/geo/GeoIndex.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/geo/GeoIndex.cpp b/src/common/geo/GeoIndex.cpp index 1d7e3249ef7..35df2e3fb09 100644 --- a/src/common/geo/GeoIndex.cpp +++ b/src/common/geo/GeoIndex.cpp @@ -38,6 +38,8 @@ nebula::storage::cpp2::IndexColumnHint ScanRange::toIndexColumnHint() { // Encode uint64_t as string in advance hint.set_begin_value(IndexKeyUtils::encodeUint64(rangeMin)); hint.set_end_value(IndexKeyUtils::encodeUint64(rangeMax)); + hint.set_include_begin(true); + hint.set_include_end(true); } else { hint.set_scan_type(nebula::storage::cpp2::ScanType::PREFIX); hint.set_begin_value(IndexKeyUtils::encodeUint64(rangeMin));