Uh oh!
There was an error while loading. Please reload this page.
v2 segment support string encode(#1766) - #1816
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
keep dict page handle in FileColumnIterator;
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| for (int j = 0; j < 4; ++j) { | ||
| auto cell = row.cell(j); | ||
| cell.set_not_null(); | ||
| set_column_value_by_type(tablet_schema->_cols[j]._type, i * 10 + j, (char*)cell.mutable_cell_ptr(), tablet_schema->_cols[j]._length); |
There was a problem hiding this comment.
I'm confused, how can you access private field _cols and _type?
There was a problem hiding this comment.
me too;not FRIEND_TEST,not "#define private public"
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } else if (_type_info->type() == OLAP_FIELD_TYPE_CHAR) { | ||
| Slice *min_value = (Slice *)_zone_map.min_value; | ||
| min_value->data = _max_char_value; | ||
| min_value->size = OLAP_CHAR_MAX_LENGTH; |
There was a problem hiding this comment.
why set char type's max length to 255? I think it should be equal to OLAP_STRING_MAX_LENGTH.
There was a problem hiding this comment.
Fe defines max char and varchar length,see ScalarType;this is a temporary define,later I will use columns real length
There was a problem hiding this comment.
yes, for char type, it is a bit complex
gaodayue
left a comment
There was a problem hiding this comment.
LGTM generally. One thing I'm not sure is the change to varchar's set_to_max since it's been used by segment v1's zonemap. Would it break backward compatibility? @kangpinghuang Could you verify it?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| auto slice = reinterpret_cast<Slice*>(buf); | ||
| slice->size = 1; | ||
| memset(slice->data, 0xFF, 1); | ||
| memset(slice->data, 0xFF, slice->size); |
There was a problem hiding this comment.
should first reset slice->size to OLAP_STRING_MAX_LENGTH
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2. interpret not cast 3.remove useless var 4. set_to_min/max consist with master
kangpinghuang
commented
Sep 30, 2019
I have check set_to_max in olap, I think original code has bug and this pr's code has fix it.
|
wangbo
commented
Sep 30, 2019
current commit is old version:in varchar's set_to_max,slice size set to 1 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Core dump stack
core dump happends in wrapper_field.cpp
before that in column_data_writer.cpp
in line:68,we get a char[64] I prepare to solve it with a new pr which allocate ColumnZoneMapBuilder max/min value with real column length |
wangbo
commented
Sep 30, 2019
@imay please review again
|
#1766
major change
0919 commit major change
3.rollback BinaryDictPage
0926 17 commit major change
set char/varchar column_zone_map'max value size to 0
0929 10 commit major change