-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42561][CONNECT] Add temp view API to Dataset #40167
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
Conversation
| new Dataset[T](this, plan) | ||
| } | ||
|
|
||
| private[sql] def newCommand[T](f: proto.Command.Builder => Unit): proto.Command = { |
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.
Are we going to use this method else where? Otherwise it seems a bit much to add.
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.
I think for any other command related API, we can use it.
hvanhovell
left a comment
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.
LGTM
| * @group basic | ||
| * @since 3.4.0 | ||
| */ | ||
| @deprecated("Use createOrReplaceTempView(viewName) instead.", "2.0.0") |
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.
BTW .. we should probably grep and replace these versions in deprecation (2.0.0 in this case) to 3.4.0 .. of course I don't mind doing separately.
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.
Updated.
I didn't update it was because this API is added from 3.4.0 for Connect but deprecated since 3.4.0, which becomes a bit confusing.
|
Merging. Thanks! |
### What changes were proposed in this pull request? Add temp view API to Dataset ### Why are the changes needed? API coverage ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes #40167 from amaliujia/add_temp_view_api. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 710e7de) Signed-off-by: Herman van Hovell <herman@databricks.com>
### What changes were proposed in this pull request? Add temp view API to Dataset ### Why are the changes needed? API coverage ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes apache#40167 from amaliujia/add_temp_view_api. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 710e7de) Signed-off-by: Herman van Hovell <herman@databricks.com>
What changes were proposed in this pull request?
Add temp view API to Dataset
Why are the changes needed?
API coverage
Does this PR introduce any user-facing change?
NO
How was this patch tested?
UT