dongjoon-hyun commented on a change in pull request #25778: [WIP][CORE][SPARKR] 
Make r file extension check case insensitive
URL: https://github.com/apache/spark/pull/25778#discussion_r324034112
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
 ##########
 @@ -1028,7 +1028,7 @@ object SparkSubmit extends CommandLineUtils with Logging 
{
    * Return whether the given primary resource requires running R.
    */
   private[deploy] def isR(res: String): Boolean = {
-    res != null && res.endsWith(".R") || res == SPARKR_SHELL
+    res != null && (res.endsWith(".R") || res.endsWith(".r")) || res == 
SPARKR_SHELL
 
 Review comment:
   Does the build pass in your environment? For me, it seems that this PR will 
fail at building phase due to the coding style violation. For example, this PR 
has too long lines.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to