Complete the code to set the output mode to append in a streaming query.
query = df.writeStream.outputMode('[1]').start()
The append mode adds only new rows to the output sink.
Complete the code to set the output mode to complete in a streaming query.
query = df.writeStream.outputMode('[1]').start()
The complete mode writes the entire result table to the sink every time there is an update.
Fix the error in setting the output mode to update in a streaming query.
query = df.writeStream.outputMode('[1]').start()
The update mode outputs only the rows that have changed since the last trigger.
Fill both blanks to create a streaming query that writes to console with update mode and no truncation.
query = df.writeStream.format('[1]').outputMode('[2]').option('truncate', false).start()
The console format outputs to the console, and update mode outputs only changed rows.
Fill all three blanks to write a streaming DataFrame to memory with complete mode and query name 'myQuery'.
query = df.writeStream.format('[1]').outputMode('[2]').queryName('[3]').start()
Writing to memory allows querying the result table, complete mode outputs full results, and myQuery names the query.