Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r] Update SOMADataFrame$create() to automatically mark ordered() #1720

Conversation

mojaveazure
Copy link
Member

Add an check in SOMADataFrame$create() to detect if a column in the schema is ordered. If so, automatically mark the enumerations as such.

Note: this only happens if

  • there are enumerations for the column
  • the column in the arrow schema is marked as ordered
  • there is no attribute 'ordered' on the enumerations for the column

Add an check in `SOMADataFrame$create()` to detect if a column in the schema is ordered. If so, automatically mark the enumerations as such. Note: this only happens if:
- there are enumerations for the column
- the column in the arrow schema is marked as ordered
- there is no attribute `'ordered'` on the enumerations for the column
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #34681: SOMADataFrameCreate() does not respect ordered factors.

Copy link
Contributor

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

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

Thanks for this nice addition to snooth out another corner.

@mojaveazure mojaveazure merged commit 97456c3 into main Sep 26, 2023
@mojaveazure mojaveazure deleted the paulhoffman/sc-34681/somadataframecreate-does-not-respect-ordered branch September 26, 2023 18:57
@johnkerl
Copy link
Member

Backport CI is not triggering; I will manually create a backport PR for release-1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants