Skip to content

orderBy.limit.filter has wrong behavior #5325

Closed

Description

@danielmewes

Client 1:

r.table('test').orderBy({index: "id"}).limit(1).filter({v: true}).changes()

Client 2:

r.table('test').insert({id: 2, v: true})
// Value appears on changefeed

r.table('test').insert({id: 1, v: false})
// Nothing appears on changefeed
// Would expect: {old_val: {id: 2, v: true}, new_val: null}

If this is hard to fix, we should probably just detect and disallow a filter after an orderBy.limit in a changefeed.

(mentioning @mlucy)

Activity

  1. added this to the 2.3 milestone on Jan 28, 2016
  2. mlucy commented on Jan 29, 2016

    @mlucy
    Member

    Good catch. I think we should just disallow .orderBy.limit.filter.

  3. danielmewes commented on Jan 29, 2016

    @danielmewes
    MemberAuthor

    I think we should just disallow .orderBy.limit.filter.

    Agreed. Sounds good to me.

  4. self-assigned this
    on Feb 12, 2016
  5. nighelles commented on Feb 12, 2016

    @nighelles

    In review 3474, branch nighelles/5325.

  6. nighelles commented on Feb 22, 2016

    @nighelles

    This is in next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions