pengzhiwei2018 commented on a change in pull request #2651:
URL: https://github.com/apache/hudi/pull/2651#discussion_r619827844



##########
File path: 
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/DefaultSource.scala
##########
@@ -66,10 +69,15 @@ class DefaultSource extends RelationProvider
   override def createRelation(sqlContext: SQLContext,
                               optParams: Map[String, String],
                               schema: StructType): BaseRelation = {
+    val path = removeStar(optParams.get("path"))
     // Add default options for unspecified read options keys.
-    val parameters = translateViewTypesToQueryTypes(optParams)
+    val parameters = if (path.isDefined) {
+      translateViewTypesToQueryTypes(optParams) + ("path" -> path.get)
+    } else {
+      translateViewTypesToQueryTypes(optParams)
+    }
+    // Remove the "*" from the path in order to be compatible with the 
previous query path with "*"

Review comment:
       This has removed in the latest PR.




-- 
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]


Reply via email to