Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/2454#issuecomment-56286238
I don't think the overhead of reading the file is significant here, but
agree it's nice to avoid extra print statements. `lazy val`'s like this are a
little brittle because they make the access order sensitive. I.e. if someone
tries to reference this earlier in the program it will break in a weird way.
Nonetheless think this is fine to have. It's a small enough code segment
here. I'll merge it and make the minor style fix suggested here.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]