You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4580 extent elimination for dictionary-based text/varchar types
The idea is relatively simple - encode prefixes of collated strings as integers and use them to compute extents' ranges. Then we can eliminate extents with strings. The actual patch does have all the code there but miss one important step: we do not keep collation index, we keep charset index. Because of this, some of the tests in the bugfix suite fail and thus main functionality is turned off. The reason of this patch to be put into PR at all is that it contains changes that made CHAR/VARCHAR columns unsigned. This change is needed in vectorization work.
This commit is contained in:
@ -54,6 +54,9 @@
|
||||
|
||||
class PrimTest;
|
||||
|
||||
// XXX: turn off dictionary range setting during scan.
|
||||
#define XXX_PRIMITIVES_TOKEN_RANGES_XXX
|
||||
|
||||
namespace primitives
|
||||
{
|
||||
enum ColumnFilterMode
|
||||
@ -423,7 +426,13 @@ class PrimitiveProcessor
|
||||
// void p_ColAggregate(const NewColAggRequestHeader *in, NewColAggResultHeader *out);
|
||||
|
||||
void p_Dictionary(const DictInput* in, std::vector<uint8_t>* out, bool skipNulls, uint32_t charsetNumber,
|
||||
boost::shared_ptr<DictEqualityFilter> eqFilter, uint8_t eqOp);
|
||||
#if !defined(XXX_PRIMITIVES_TOKEN_RANGES_XXX)
|
||||
boost::shared_ptr<DictEqualityFilter> eqFilter, uint8_t eqOp
|
||||
#else
|
||||
boost::shared_ptr<DictEqualityFilter> eqFilter, uint8_t eqOp,
|
||||
uint64_t minMax[2] // as name suggests, [0] is min, [1] is max.
|
||||
#endif
|
||||
);
|
||||
|
||||
inline void setLogicalBlockMode(bool b)
|
||||
{
|
||||
|
Reference in New Issue
Block a user