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

[SPARK-41225][CONNECT][PYTHON][FOLLOWUP] Disable semanticHash, sameSemantics, _repr_html_ #38815

Conversation

zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Nov 28, 2022

What changes were proposed in this pull request?

Disable semanticHash, sameSemantics, _repr_html_

Why are the changes needed?

1, Disable semanticHash, sameSemantics according to the discussions in #38742
2, Disable _repr_html_ since it requires eager mode, otherwise, it just returns None

In [2]: spark.range(start=0, end=10)._repr_html_() is None
Out[2]: True

Does this PR introduce any user-facing change?

for these three methods, throw NotImplementedError

How was this patch tested?

added test cases

@zhengruifeng zhengruifeng deleted the connect_disable_repr_html_sematic branch November 28, 2022 06:50
@zhengruifeng
Copy link
Contributor Author

merged into master

beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
…eSemantics`, `_repr_html_ `

### What changes were proposed in this pull request?
Disable `semanticHash`, `sameSemantics`, `_repr_html_ `

### Why are the changes needed?
1, Disable `semanticHash`, `sameSemantics` according to the discussions in apache#38742
2, Disable `_repr_html_ ` since it requires [eager mode](https://github.com/apache/spark/blob/40a9a6ef5b89f0c3d19db4a43b8a73decaa173c3/python/pyspark/sql/dataframe.py#L878), otherwise, it just returns `None`

```
In [2]: spark.range(start=0, end=10)._repr_html_() is None
Out[2]: True

```

### Does this PR introduce _any_ user-facing change?
for these three methods, throw `NotImplementedError`

### How was this patch tested?
added test cases

Closes apache#38815 from zhengruifeng/connect_disable_repr_html_sematic.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…eSemantics`, `_repr_html_ `

### What changes were proposed in this pull request?
Disable `semanticHash`, `sameSemantics`, `_repr_html_ `

### Why are the changes needed?
1, Disable `semanticHash`, `sameSemantics` according to the discussions in apache#38742
2, Disable `_repr_html_ ` since it requires [eager mode](https://github.com/apache/spark/blob/40a9a6ef5b89f0c3d19db4a43b8a73decaa173c3/python/pyspark/sql/dataframe.py#L878), otherwise, it just returns `None`

```
In [2]: spark.range(start=0, end=10)._repr_html_() is None
Out[2]: True

```

### Does this PR introduce _any_ user-facing change?
for these three methods, throw `NotImplementedError`

### How was this patch tested?
added test cases

Closes apache#38815 from zhengruifeng/connect_disable_repr_html_sematic.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants