You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/07/03 11:54:58 UTC

[GitHub] [hudi] leesf commented on a change in pull request #1783: [HUDI-1064] Trim hoodie table name

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`




----------------------------------------------------------------
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:
users@infra.apache.org