Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improving the comment for new method
  • Loading branch information
MaxGekk committed Jul 11, 2018
commit 183c743782dd04a1f4ee2c889ea95f1b6fcf855f
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ class RuntimeConfig private[sql](sqlConf: SQLConf = new SQLConf) {
* Indicates whether the configuration property with the given key
* is modifiable in the current session.
Copy link
Member

Choose a reason for hiding this comment

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

nit: If a key is not a valid conf, this function will still return false. Should we specify this in the comments?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added @return tag with this info.

*
* @return `true` if the configuration property is modifiable. For static SQL, Spark Core,
* invalid (not existing) and other non-modifiable configuration properties,
* the returned value is `false`.
* @since 2.4.0
*/
def isModifiable(key: String): Boolean = sqlConf.isModifiable(key)
Expand Down