dongjoon-hyun commented on code in PR #49233:
URL: https://github.com/apache/spark/pull/49233#discussion_r1905782694
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala:
##########
@@ -2785,6 +2785,17 @@ private[sql] object QueryExecutionErrors extends
QueryErrorsBase with ExecutionE
Map.empty
)
+ def invalidFileExtensionError(functionName: String, fileExtension: String):
RuntimeException = {
+ new SparkIllegalArgumentException(
+ errorClass = "INVALID_PARAMETER_VALUE.FILE_EXTENSION",
+ messageParameters = Map(
+ "functionName" -> toSQLId(functionName),
+ "parameter" -> toSQLId("fileExtension"),
+ "fileExtension" -> toSQLId(fileExtension),
+ "acceptable" -> "File extension is limited to exactly 3 letters (e.g.
csv, tsv, etc...)"))
+ }
+
+
Review Comment:
Could you remove this extra empty line?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]