Skip to content

Conversation

@ben-schwen
Copy link
Member

@ben-schwen ben-schwen commented Jan 7, 2024

Follows #5548

Problems are j arguments of the form x[y].

  • Adds check that y is indeed numeric. This was already partially done by enforcing y>0 but didn't block y==TRUE.
  • Enforce that y is not a column in the calling data.table

We could possible add a check to enforce x being a column in the data.table but this would deactive GForce for .I[1] expressions. Plus we already have the check that x should be atomic in the environment of the data.table.

Revdep checks:

  • dtplyr tests
  • ahw tests + examples

@ben-schwen ben-schwen marked this pull request as ready for review January 7, 2024 19:18
@ben-schwen ben-schwen requested a review from mattdowle as a code owner January 7, 2024 19:18
@codecov
Copy link

codecov bot commented Jan 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (685d51d) 97.48% compared to head (2ab6ec1) 97.48%.
Report is 1 commits behind head on master.

❗ Current head 2ab6ec1 differs from pull request most recent head ee1fcb4. Consider uploading reports for the commit ee1fcb4 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5887   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files          80       80           
  Lines       14862    14862           
=======================================
  Hits        14488    14488           
  Misses        374      374           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jangorecki jangorecki added this to the 1.15.0 milestone Jan 7, 2024
Copy link
Member

@MichaelChirico MichaelChirico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor point on tests, LGTM otherwise. feel free to merge

@MichaelChirico
Copy link
Member

Thanks for the quick turnaround!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants