Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions columnar/accessor/accessormva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class MvaAll_T
template<typename T>
static FORCE_INLINE bool Test ( const Span_T<T> & dValues, int64_t iTestValue )
{
if ( dValues.empty() )
return false ^ (!EQ);

for ( auto i : dValues )
if ( i!=iTestValue )
return false ^ (!EQ);
Expand Down
10 changes: 6 additions & 4 deletions secondary/builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,12 @@ void RowWriter_T<SRC_VALUE, VALUE>::NextValue ( const RawValue_T<VALUE> & tBin,
{
// collect row-list
// or flush and store new value
if ( IS_FLOAT_VALUE && ( FloatEqual ( UintToFloat ( m_tLastValue ), UintToFloat ( tBin.m_tValue ) ) ) )
m_dRows.push_back ( tBin.m_tRowid );
else if ( !IS_FLOAT_VALUE && m_tLastValue==tBin.m_tValue )
m_dRows.push_back ( tBin.m_tRowid );
if ( IS_FLOAT_VALUE ? FloatEqual ( UintToFloat ( m_tLastValue ), UintToFloat ( tBin.m_tValue ) ) : m_tLastValue==tBin.m_tValue )
{
// values come sorted by value and row: a value set twice for one row (e.g. [2,2] in json) is stored once
if ( m_dRows.back()!=tBin.m_tRowid )
m_dRows.push_back ( tBin.m_tRowid );
}
else
{
FlushValue(m_tDstFile);
Expand Down
Loading