-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][R] Fix indents of sparkR welcome message to be consistent with pyspark and spark-shell #23293
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
…rk work properly in in Docker container
| cat("\n") | ||
|
|
||
| cat("\n SparkSession available as 'spark'.\n") | ||
| cat("\nSparkSession available as 'spark'.\n") |
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 thought this was here to align with the previous lines?
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.
Yea,
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 3.0.0-SNAPSHOT
/_/
- SparkSession available as 'spark'.
+ SparkSession available as 'spark'.Maybe we can consider to check if all other shells messages look in the same format or coherent for some reasons, and then match them. But I wouldn't bother fixing it.
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.
Yea, it's aligned with previous lines. Didn't see empty spaces in other shell cmd(spark-shell, pyspark). I'll close this if it's confirmed not necessary.
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.
Can you show other shell messages and explain why this change makes it consistent 8n the PR description?
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 the description.
|
ok to test |
|
Let's update PR description too. Is it okay to you @rxin? |
|
Test build #100034 has finished for PR 23293 at commit
|
R/pkg/inst/profile/shell.R
Outdated
| cat(" ____ __", "\n") | ||
| cat(" / __/__ ___ _____/ /__", "\n") | ||
| cat(" _\\ \\/ _ \\/ _ `/ __/ '_/", "\n") | ||
| cat("/___/ .__/\\_,_/_/ /_/\\_\\") |
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.
Don't these lines actually have to have 3 spaces in front to be consistent?
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.
Right, I was thinking of getting rid of one empty space per line. But I just reset these lines back to origin.
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.
Sorry I misunderstood it. Setting indent of these lines to 3 also.
R/pkg/inst/profile/shell.R
Outdated
| cat("\nWelcome to") | ||
| cat("\n") | ||
| cat(" ____ __", "\n") | ||
| cat(" / __/__ ___ _____/ /__", "\n") |
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 @srowen meant we should have three spaces for this whole logo like:
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/__ / .__/\_,_/_/ /_/\_\
/_/
Can you post the before/after results in the PR description at "How was this patch tested?"? Looks existing tests don't cover this change.
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.
|
Looks fine. adding @felixcheung |
|
Test build #100062 has finished for PR 23293 at commit
|
R/pkg/inst/profile/shell.R
Outdated
| if (nchar(sparkVer) == 0) { | ||
| cat("\n") | ||
| } else { | ||
| cat(" version ", sparkVer, "\n") |
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.
Looks the space after version should be removed for consistency
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.
Yep, just noticed that. Removed
|
Test build #100064 has finished for PR 23293 at commit
|
|
Test build #100066 has finished for PR 23293 at commit
|
|
Let's don't forget to update PR description and title as well. Both are kind of important in a way because that's going to be in commit messages. Sometimes it's easier to skim only commit messages to see what the commit changed. When both are mismatched, it causes potential overhead to skim what the commit changed. |
Noted. Thanks a lot for the instructions. Super Helpful! |
|
@AzureQ, looks "How was this patch tested?" should be also updated. note "version 2.4.0" it has two spaces |
|
retest this please |
|
Test build #100076 has finished for PR 23293 at commit
|
|
retest this please |
|
Test build #100079 has finished for PR 23293 at commit
|
|
Merged to master. I fixed PR description by myself. |
Sorry for the delay. Thanks for the help! |
…h pyspark and spark-shell
## What changes were proposed in this pull request?
1. Removed empty space at the beginning of welcome message lines of sparkR to be consistent with welcome message of `pyspark` and `spark-shell`
2. Setting indent of logo message lines to 3 to be consistent with welcome message of `pyspark` and `spark-shell`
Output of `pyspark`:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/__ / .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
Using Python version 3.6.6 (default, Jun 28 2018 11:07:29)
SparkSession available as 'spark'.
```
Output of `spark-shell`:
```
Spark session available as 'spark'.
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
Using Scala version 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_161)
Type in expressions to have them evaluated.
Type :help for more information.
```
## How was this patch tested?
Before:
Output of `sparkR`:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
SparkSession available as 'spark'.
```
After:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
SparkSession available as 'spark'.
```
Closes apache#23293 from AzureQ/master.
Authored-by: Qi Shao <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
…h pyspark and spark-shell
## What changes were proposed in this pull request?
1. Removed empty space at the beginning of welcome message lines of sparkR to be consistent with welcome message of `pyspark` and `spark-shell`
2. Setting indent of logo message lines to 3 to be consistent with welcome message of `pyspark` and `spark-shell`
Output of `pyspark`:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/__ / .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
Using Python version 3.6.6 (default, Jun 28 2018 11:07:29)
SparkSession available as 'spark'.
```
Output of `spark-shell`:
```
Spark session available as 'spark'.
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
Using Scala version 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_161)
Type in expressions to have them evaluated.
Type :help for more information.
```
## How was this patch tested?
Before:
Output of `sparkR`:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
SparkSession available as 'spark'.
```
After:
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.4.0
/_/
SparkSession available as 'spark'.
```
Closes apache#23293 from AzureQ/master.
Authored-by: Qi Shao <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
What changes were proposed in this pull request?
pysparkandspark-shellpysparkandspark-shellOutput of
pyspark:Output of
spark-shell:How was this patch tested?
Before:
Output of
sparkR:After: