Skip to content

Commit 9c276f3

Browse files
committed
correct for no override
1 parent d4d765b commit 9c276f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ case class WriteToDataSourceV2Exec(writer: DataSourceWriter, query: SparkPlan) e
5858
case w: MicroBatchWriter =>
5959
new StreamingInternalRowDataWriterFactory(w.createWriterFactory(), query.schema)
6060
case w: StreamWriter =>
61-
new StreamingInternalRowDataWriterFactory(w.createWriterFactory(), query.schema)
61+
new StreamingInternalRowDataWriterFactory(
62+
w.createWriterFactory().asInstanceOf[StreamingDataWriterFactory[Row]],
63+
query.schema)
6264
case _ =>
6365
new InternalRowDataWriterFactory(writer.createWriterFactory(), query.schema)
6466
}

0 commit comments

Comments
 (0)