Skip to content

Conversation

@AzureQ
Copy link
Contributor

@AzureQ AzureQ commented Dec 11, 2018

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'.

cat("\n")

cat("\n SparkSession available as 'spark'.\n")
cat("\nSparkSession available as 'spark'.\n")
Copy link
Contributor

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?

Copy link
Member

@HyukjinKwon HyukjinKwon Dec 12, 2018

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.

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the description.

@HyukjinKwon
Copy link
Member

ok to test

@HyukjinKwon
Copy link
Member

Let's update PR description too. Is it okay to you @rxin?

@SparkQA
Copy link

SparkQA commented Dec 12, 2018

Test build #100034 has finished for PR 23293 at commit 988c9ca.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

cat(" ____ __", "\n")
cat(" / __/__ ___ _____/ /__", "\n")
cat(" _\\ \\/ _ \\/ _ `/ __/ '_/", "\n")
cat("/___/ .__/\\_,_/_/ /_/\\_\\")
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

cat("\nWelcome to")
cat("\n")
cat(" ____ __", "\n")
cat(" / __/__ ___ _____/ /__", "\n")
Copy link
Member

@HyukjinKwon HyukjinKwon Dec 13, 2018

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@HyukjinKwon
Copy link
Member

Looks fine. adding @felixcheung

@SparkQA
Copy link

SparkQA commented Dec 13, 2018

Test build #100062 has finished for PR 23293 at commit 6deee33.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

if (nchar(sparkVer) == 0) {
cat("\n")
} else {
cat(" version ", sparkVer, "\n")
Copy link
Member

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

Copy link
Contributor Author

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

@SparkQA
Copy link

SparkQA commented Dec 13, 2018

Test build #100064 has finished for PR 23293 at commit ef42aba.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 13, 2018

Test build #100066 has finished for PR 23293 at commit fad25e2.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

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.

@AzureQ AzureQ changed the title [MINOR][R] Removed Empty Space at the beginning of SparkSession available msg [MINOR][R] Fixing indents of sparkR welcome message to be consistent with pyspark and spark-shell Dec 13, 2018
@AzureQ AzureQ changed the title [MINOR][R] Fixing indents of sparkR welcome message to be consistent with pyspark and spark-shell [MINOR][R] Fix indents of sparkR welcome message to be consistent with pyspark and spark-shell Dec 13, 2018
@AzureQ
Copy link
Contributor Author

AzureQ commented Dec 13, 2018

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!

@HyukjinKwon
Copy link
Member

@AzureQ, looks "How was this patch tested?" should be also updated. note "version 2.4.0" it has two spaces

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Dec 13, 2018

Test build #100076 has finished for PR 23293 at commit fad25e2.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Dec 13, 2018

Test build #100079 has finished for PR 23293 at commit fad25e2.

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

@HyukjinKwon
Copy link
Member

Merged to master.

I fixed PR description by myself.

@asfgit asfgit closed this in 19b63c5 Dec 13, 2018
@AzureQ
Copy link
Contributor Author

AzureQ commented Dec 13, 2018

Merged to master.

I fixed PR description by myself.

Sorry for the delay. Thanks for the help!

holdenk pushed a commit to holdenk/spark that referenced this pull request Jan 5, 2019
…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]>
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants