Skip to content

Conversation

@amaliujia
Copy link
Contributor

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

@amaliujia
Copy link
Contributor Author

@hvanhovell

new Dataset[T](this, plan)
}

private[sql] def newCommand[T](f: proto.Command.Builder => Unit): proto.Command = {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@hvanhovell hvanhovell left a 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")
Copy link
Member

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.

Copy link
Contributor Author

@amaliujia amaliujia Feb 25, 2023

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.

@hvanhovell
Copy link
Contributor

Merging. Thanks!

hvanhovell pushed a commit that referenced this pull request Feb 25, 2023
### 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>
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants