-
Notifications
You must be signed in to change notification settings - Fork 991
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
shift
no longer works on matrix type under 1.14.3
#5287
Comments
shift
no longer works on matrix typeshift
no longer works on matrix type under 1.14.3
Introduced in #5189. It's erroring because According to docs @jangorecki are there reasons why |
There reason is that there was no such requirement when it was implemented. |
the fix in this case is very simple:
The earlier behavior on multi-column matrices is IMO quite undesirable, so I'm happy to break it in this case. Though we could improve the error message by catching it earlier. |
for the record, im not asking for the old functionality to be restored. was more pointing out that it did break existing code, so probably warrants a section in the news if intentional (which it looks like it is)
…________________________________
From: Michael Chirico ***@***.***>
Sent: Saturday, December 18, 2021 11:35 PM
To: Rdatatable/data.table ***@***.***>
Cc: Ethan Smith ***@***.***>; Author ***@***.***>
Subject: Re: [Rdatatable/data.table] `shift` no longer works on matrix type under 1.14.3 (Issue #5287)
the fix in this case is very simple:
data.table::shift(c(matrix(1:10, ncol = 1)))
The earlier behavior on multi-column matrices is IMO quite undesirable, so I'm happy to break it in this case. Though we could improve the error message by catching it earlier.
—
Reply to this email directly, view it on GitHub<#5287 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF2ACB3WRSFSLTBRJJ7TWLTURV4LXANCNFSM5J4UTY6Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Was about to do it, but realized I will just copy error message from |
shift
used to work on matrix columns, but now generates and error. i dont see anything in the NEWS. is this intentional as its a breaking change?works in 1.14.0
not working under 1.14.3
The text was updated successfully, but these errors were encountered: