Skip to content

Conversation

@animenon
Copy link
Contributor

@animenon animenon commented Jul 2, 2020

What changes were proposed in this pull request?

Minor fix so that the documentation of getActiveSession is fixed.
The sample code snippet doesn't come up formatted rightly, added spacing for this to be fixed.
Also added return to docs.

Why are the changes needed?

The sample code is getting mixed up as description in the docs.

Current Doc Link

image

Does this PR introduce any user-facing change?

Yes, documentation of getActiveSession is fixed.
And added description about return.

How was this patch tested?

Adding a spacing between description and code seems to fix the issue.

@HyukjinKwon
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124891 has finished for PR 28978 at commit 5f4e7cd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Jul 2, 2020

Merged to master and branch-3.0.

HyukjinKwon pushed a commit that referenced this pull request Jul 2, 2020
### What changes were proposed in this pull request?

Minor fix so that the documentation of `getActiveSession` is fixed.
The sample code snippet doesn't come up formatted rightly, added spacing for this to be fixed.
Also added return to docs.

### Why are the changes needed?

The sample code is getting mixed up as description in the docs.

[Current Doc Link](http://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=getactivesession#pyspark.sql.SparkSession.getActiveSession)

![image](https://user-images.githubusercontent.com/6907950/86331522-d7b6f800-bc66-11ea-998c-42085f5e5b04.png)

### Does this PR introduce _any_ user-facing change?

Yes, documentation of getActiveSession is fixed.
And added description about return.

### How was this patch tested?

Adding a spacing between description and code seems to fix the issue.

Closes #28978 from animenon/docs_minor.

Authored-by: animenon <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit 45fe6b6)
Signed-off-by: HyukjinKwon <[email protected]>
@animenon animenon deleted the docs_minor branch July 5, 2020 03:25
@animenon animenon restored the docs_minor branch July 5, 2020 03:26
@animenon animenon deleted the docs_minor branch July 5, 2020 03:26
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