[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread rxin
Github user rxin commented on the issue:

https://github.com/apache/spark/pull/13591
  
Let me just merge this to save some time debating. Merging in master/2.0.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread srowen
Github user srowen commented on the issue:

https://github.com/apache/spark/pull/13591
  
The effect for source and readability is that of a cast; yes it is not a 
call to asInstanceOf. I do not feel strongly though this would have been the 
righter way to write this code.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread rxin
Github user rxin commented on the issue:

https://github.com/apache/spark/pull/13591
  
@srowen it wasn't really casting here. It's just an explicit type 
definition.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread srowen
Github user srowen commented on the issue:

https://github.com/apache/spark/pull/13591
  
I know this is bikeshedding, but I very slightly prefer this change. 
Casting is uglier than using the 'right' method. I do understand "empty" is 
slightly less familiar.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread markhamstra
Github user markhamstra commented on the issue:

https://github.com/apache/spark/pull/13591
  
Yeah, I wouldn't bother.  The way this PR does it is arguably better 
because it can be done consistently across all collections:
```scala
val l0 = List.empty[String]
val s0 = Set.empty[Int]
val o0 = Option.empty[Byte]
```
...but it's pretty trivial, and I don't buy the readability argument.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread rxin
Github user rxin commented on the issue:

https://github.com/apache/spark/pull/13591
  
I'm actually not sure this is better in readability in either, since most 
people know about None/Some/Option, but not necessarily Option.empty (I didn't 
know about this before your pr).



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread techaddict
Github user techaddict commented on the issue:

https://github.com/apache/spark/pull/13591
  
No performance benefits but improves readability.

On Fri, Jun 10, 2016 at 12:49 PM, Reynold Xin 
wrote:

> Is this actually an improvement? Might be too trivial to bother doing.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> , or 
mute
> the thread
> 

> .
>



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread rxin
Github user rxin commented on the issue:

https://github.com/apache/spark/pull/13591
  
Is this actually an improvement? Might be too trivial to bother doing.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/13591
  
Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/13591
  
Test PASSed.
Refer to this link for build results (access rights to CI server needed): 
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60272/
Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-10 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/13591
  
**[Test build #60272 has 
finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60272/consoleFull)**
 for PR 13591 at commit 
[`11988c9`](https://github.com/apache/spark/commit/11988c94b9983af8926964b1c21f72bf8efaaa87).
 * This patch passes all tests.
 * This patch merges cleanly.
 * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #13591: [Minor] Replace all occurrences of None: Option[X] with ...

2016-06-09 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/13591
  
**[Test build #60272 has 
started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60272/consoleFull)**
 for PR 13591 at commit 
[`11988c9`](https://github.com/apache/spark/commit/11988c94b9983af8926964b1c21f72bf8efaaa87).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org