Skip to content
Prev Previous commit
Next Next commit
Remove a line
  • Loading branch information
MaxGekk committed Sep 13, 2018
commit a4430544d51a35c1c662494e53157f77a737f252
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) {
df.sparkSession.sessionState.conf)
val options = sessionOptions ++ extraOptions


val relation = DataSourceV2Relation.create(source, options)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both read/write-side tests.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote a test for read path since I was able to grab options propagated to DataSource but I have no idea so far for write path, only mocking probably. Does it make sense to do that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For write path, I think we can use the traditional way instead of introducing mocking. Let me try.

if (mode == SaveMode.Append) {
runCommand(df.sparkSession, "save") {
Expand Down