title: Getting Error : is not a delta table in Databricks
body: <p>The Question is:</p>
  <p>Complete the <code>writeToBronze</code> function to perform the following tasks:</p>
  <ol>
  <li>Write the stream from <code>gamingEventDF</code> -- the stream defined above --
  to a bronze Delta table in path defined by <code>outputPathBronze</code>.</li>
  <li>Convert the (nested) input column <code>client_event_time</code> to a date format and
  rename the column to <code>eventDate</code></li>
  <li>Filter out records with a null value in the <code>eventDate</code> column</li>
  <li>Make sure you provide a checkpoint directory that is unique to this stream</li>
  </ol>
  <p>Code :</p>
  <pre class="lang-py prettyprint-override"><code>def writeToBronze(sourceDataframe, bronzePath, streamName):
    (sourceDataframe    
       .withColumn(&quot;eventDate&quot;, 
          to_date(col(&quot;eventParams.client_event_time&quot;), &quot;yyyy-MM-dd&quot;))
       .filter(col(&quot;eventDate&quot;).isNotNull())     
       .writeStream
       .format(&quot;delta&quot;)
       .option(&quot;checkpointLocation&quot;, f&quot;{bronzePath}_checkpoint&quot;)
       .queryName(streamName)
       .outputMode(&quot;append&quot;) 
       .start(outputPathBronze)
    )
      
  writeToBronze(gamingEventDF, outputPathBronze, &quot;bronze_stream&quot;)
  </code></pre>
  <p>Below is the Error I get:
  <a href="https://i.stack.imgur.com/U9FeZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U9FeZ.png" alt="" /></a></p>