RUBY-669 support  aggregation pipeline operator
RUBY-669 Raise error if read is non-primary