imback82 commented on pull request #29328:
URL: https://github.com/apache/spark/pull/29328#issuecomment-667725762


   I also see that `path` is treated different depending on the number of 
paths. For example,
   ```
   // For single path, "path" option is overridden with path given in "load"
   scala> spark.read.option("path", 
"/tmp/test").format("parquet").load("/tmp/test").show
   +-----+                                                                      
   
   |value|
   +-----+
   |    1|
   +-----+
   
   // For multiple paths, "path" option is "added" to the paths given in "load"
   scala> spark.read.option("path", 
"/tmp/test").format("parquet").load("/tmp/test", "/tmp/test").show
   +-----+
   |value|
   +-----+
   |    1|
   |    1|
   |    1|
   +-----+
   ```
   
   Should I just fix this inconsistency instead of this PR? If so, what should 
be the expected behavior (just ignore `path` option if paths are passed to 
`load`)?
   
   cc: @cloud-fan @dongjoon-hyun @viirya (Thanks in advance!)


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



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

Reply via email to