Skip to content

Bug: Unexpected behavior with dj.Top() #1406

@mdmelin

Description

@mdmelin

Bug Report

Description

Hi @dimitri-yatsenko,

I've noticed some strange behavior when trying to restrict a query with dj.Top(), and I'm not sure if it's intended or not. The returned query seems to change as the limit argument changes. (See attached screenshot)

Reproducibility

Include:

  • OS: Windows
  • Python Version: 3.10.19
  • DataJoint Version: 0.14.6

Expected Behavior

I would expect the top of the returned query to be the same, regardless of the limit that is set (especially when order_by gets applied)

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorwontfixIndicates that work won't continue on an issue, pull request, or discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions