-
Notifications
You must be signed in to change notification settings - Fork 75
Candidates for removal deprecation #1473
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
base: master
Are you sure you want to change the base?
Conversation
@Deprecated(MESSAGE_SHORTCUT_1_0, ReplaceWith("into { pathOf(column) }"), DeprecationLevel.ERROR) | ||
@Refine | ||
@Interpretable("MoveInto0") | ||
public fun <T, C> MoveClause<T, C>.into(column: String): DataFrame<T> = pathOf(column).let { path -> into { path } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you remember why we want to remove it? It's supported by compiler plugin, seems useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it just rename {}.into {}
maybe? or move {}.under("")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's move { myCol }.toTop().rename { myCol }.into("newName")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I really don't see a reason 😄 . Let's keep it.
// region DataFrame | ||
|
||
@CandidateForRemoval | ||
@Deprecated(MESSAGE_SHORTCUT_1_0, ReplaceWith("columns().toDataFrame().cast()"), DeprecationLevel.ERROR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also usually put the replaceWith contents in the deprecations file. I'm impartial to it, as long as we have at least one constant String there to track the deprecations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we immediately go to ERROR? I don't think many of these overloads hurt. So while we will clean them up, I wouldn't say there's much hurry, so WARNING could suffice |
col.type() shouldBe typeOf<AnyRow>() | ||
col.kind() shouldBe ColumnKind.Group | ||
col[0] shouldBe row | ||
@Suppress("DEPRECATION_ERROR") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we deprecate them, we should probably remove any internal uses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for DataRow.isEmpty()
, I'd make it internal after deprecation and public removal for such tests.
Fixes #1028.