The following method:
sets the SaveMode of the DataFrameWriter depending on the string that is pass-in as parameter.
There is a java Enum with all the save modes which are Append, Overwrite, ErrorIfExists and Ignore. In my current project I was writing some code that was using this enum to get the string value that I use to call the mode method:
The configModeErrorIfExists val contains the value "errorifexists" and when I call the saveMode method using this string it does not match. I suggest to include "errorifexists" as a right match for the ErrorIfExists SaveMode.
Will create a PR to address this issue ASAP.