func RewriteSelect(m *SqlSelect) {
	originalCols := m.Columns
	m.Columns = make(Columns, 0, len(originalCols)+5)
	rewriteIntoProjection(m, originalCols)
	rewriteIntoProjection(m, m.GroupBy)
	if m.Where != nil {
		colsToAdd := expr.FindAllIdentityField(m.Where.Expr)
		addIntoProjection(m, colsToAdd)
	}
	rewriteIntoProjection(m, m.OrderBy)
}
// RewriteSelect We are removing Column Aliases "user_id as uid"
// as well as functions - used when we are going to defer projection, aggs
RewriteSelect We are removing Column Aliases "user_id as uid"
as well as functions - used when we are going to defer projection, aggs
// RewriteSelect We are removing Column Aliases " user_id as uid " // as well as functions - used when we are going to defer projection aggs
func RewriteSelect(m *SqlSelect) {
	originalCols := m.Columns
	m.Columns = make(Columns, 0, len(originalCols)+5)
	rewriteIntoProjection(m, originalCols)
	rewriteIntoProjection(m, m.GroupBy)
	if m.Where != nil {
		colsToAdd := expr.FindAllIdentityField(m.Where.Expr)
		addIntoProjection(m, colsToAdd)
	}
	rewriteIntoProjection(m, m.OrderBy)
}
func RewriteSelect ( m * SqlSelect ) { originalCols := m . Columns m . Columns = make ( Columns , 0 , len ( originalCols ) + 5 ) rewriteIntoProjection ( m , originalCols ) rewriteIntoProjection ( m , m . GroupBy ) if m . Where != nil { colsToAdd := expr . FindAllIdentityField ( m . Where . Expr ) addIntoProjection ( m , colsToAdd ) } rewriteIntoProjection ( m , m . OrderBy ) }
RewriteSelect We are removing Column Aliases "user_id as uid"
as well as functions - used when we are going to defer projection, aggs
RewriteSelect We are removing Column Aliases " user_id as uid " as well as functions - used when we are going to defer projection aggs