Commit 97df0684 authored by Guolin Ke's avatar Guolin Ke
Browse files

bug fix in get_group

parent a495a877
...@@ -123,7 +123,7 @@ bool Dataset::GetIntField(const char* field_name, int64_t* out_len, const int** ...@@ -123,7 +123,7 @@ bool Dataset::GetIntField(const char* field_name, int64_t* out_len, const int**
name = Common::Trim(name); name = Common::Trim(name);
if (name == std::string("query") || name == std::string("group")) { if (name == std::string("query") || name == std::string("group")) {
*out_ptr = metadata_.query_boundaries(); *out_ptr = metadata_.query_boundaries();
*out_len = metadata_.num_queries(); *out_len = metadata_.num_queries() + 1;
} else { } else {
return false; return false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment