Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 11:59 AM - edited 05-28-2024 11:59 AM
@Kutbuddin this is true, streaming queries are asynchronous and won't delay your code execution if not awaited for.
You can see in the example below that right after the query starts, the status is 'Initializing sources':
But when using awaitTermination() the next row of code will only be executed after the query finishes:
Best regards,
Raphael Balogo
Sr. Technical Solutions Engineer
Databricks
Raphael Balogo
Sr. Technical Solutions Engineer
Databricks