DLT fails with Queries with streaming sources must be executed with writeStream.start();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 02:01 AM - edited 06-24-2024 02:10 AM
Hi guys!
I am having an issue with passing the "streaming flow" between layers of the DLT.
first layer "ETD_Bz" is passing through, but then "ETD_Flattened_Bz" is failing with "pyspark.errors.exceptions.captured.AnalysisException: Queries with streaming sources must be executed with writeStream.start();" error.
Code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 04:54 AM - edited 06-24-2024 04:57 AM
UPDATE: tried adding writeStream.start() like error suggested + as per other posts and ended up with following error/code: