Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ final class DataStreamWriter[T] private[sql](ds: Dataset[T]) {
* @since 3.1.0
*/
@throws[TimeoutException]
def saveAsTable(tableName: String): StreamingQuery = {
def toTable(tableName: String): StreamingQuery = {
this.source = SOURCE_NAME_TABLE
this.tableName = tableName
startInternal(None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class DataStreamTableAPISuite extends StreamTest with BeforeAndAfter {
val query = inputDF
.writeStream
.option("checkpointLocation", checkpointDir.getAbsolutePath)
.saveAsTable(tableIdentifier)
.toTable(tableIdentifier)

inputData.addData(newInputs: _*)

Expand Down