Skip to content

Add is.valid(DT) function #2334

Open
Open

Description

@mattdowle

Excellent PR #2332 (which removed the repeated and wasteful check that current keys are valid) triggered the thought that perhaps we need an is.valid(DT) function for use by users. It would check that DT is indeed sorted by the key (if any) and that the indexes (if any) do indeed sort those index columns correctly. Although unlikely, it is possible for advanced users to go 'under the hood' and change attributes directly and that's when mistakes can happen. They can decide to use is.valid(DT) to check all is well at a moment that suits them.

Activity

  1. MichaelChirico commented on Sep 7, 2017

    @MichaelChirico
    Member

    Not sure how I feel about the name (validate? valid_keys? check_sorting? etc), but the function itself would find use.

  2. jangorecki commented on Apr 6, 2020

    @jangorecki
    Member

    some extra checks that could be included as well

  3. added this to the 1.12.9 milestone on Apr 6, 2020
  4. self-assigned this
    on May 23, 2020
  5. added a commit that references this issue on May 23, 2020
  6. linked a pull request that will close this issueis.valid #4480on May 23, 2020
  7. modified the milestones: 1.13.1, 1.13.3 on Oct 17, 2020
  8. removed this from the 1.14.1 milestone on Aug 28, 2021
  9. removed their assignment
    on Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions