Skip to content

Commit

Permalink
fixed grouping by stored check vs rset merge
Browse files Browse the repository at this point in the history
glookka committed Jun 25, 2024
1 parent a38a476 commit c51c7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queuecreator.cpp
Original file line number Diff line number Diff line change
@@ -621,7 +621,7 @@ bool QueueCreator_c::SetupGroupbySettings ( bool bHasImplicitGrouping )
return Err ( "group-by attribute '%s' not found", m_tQuery.m_sGroupBy.cstr() );

const CSphColumnInfo & tGroupByAttr = tSchema.GetAttr(iGroupBy);
if ( tGroupByAttr.m_pExpr && tGroupByAttr.m_pExpr->UsesDocstore() )
if ( m_tSettings.m_bComputeItems && tGroupByAttr.m_pExpr && tGroupByAttr.m_pExpr->UsesDocstore() )
return Err ( "unable to group by stored field '%s'", m_tQuery.m_sGroupBy.cstr() );

ESphAttr eType = tGroupByAttr.m_eAttrType;

0 comments on commit c51c7fa

Please sign in to comment.