leesf commented on a change in pull request #1783:
URL: https://github.com/apache/hudi/pull/1783#discussion_r449544401
##########
File path: hudi-spark/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
##########
@@ -52,7 +52,7 @@ private[hudi] object HoodieSparkSqlWriter {
val sparkContext = sqlContext.sparkContext
val path = parameters.get("path")
- val tblName = parameters.get(HoodieWriteConfig.TABLE_NAME)
+ val tblName = parameters.get(HoodieWriteConfig.TABLE_NAME).get.trim
Review comment:
if parameters do not contains `HoodieWriteConfig.TABLE_NAME`,
`parameters.get(HoodieWriteConfig.TABLE_NAME).get.trim` will throw
`java.util.NoSuchElementException: None.get` exception
----------------------------------------------------------------
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]