Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/10205#issuecomment-206041420
  
    `CHECKPOINT_LOCATION` was a weird one; because it didn't have a default 
value before my changes, and this was the best way I found to map it.
    
    There's a new method in `SQLConf` to handle it:
    
       def getConf[T](entry: OptionalConfigEntry[T]): T
    
    That should have the same behavior as the previous one for optional 
configs; meaning, if they're not set in the configuration, you'll get a 
`NoSuchElementException`. I'm not sure how you were not getting the exception 
before, since there was no default value.
    
    Also, because of that method, the return value of 
`getConf(CHECKPOINT_LOCATION)` would be `String` and not `Option[String]`, 
which is probably why intellij is complaining.


---
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]

Reply via email to