title: How to add a row record in empty Dataframe in Spark
body: <p>I am trying to create an empty dataFrame in Spark scala and wanted to create the schema of my own and load the record into it.</p>
  <p>Below is the example</p>
  <pre><code>val emptyDf = spark.emptyDataFrame
  
  val loadEmptyDf = emptyDf.withColumn(&quot;col1&quot;, lit(&quot;yes&quot;), &quot;col2&quot;, lit(&quot;no&quot;))
  </code></pre>
  <p>but i am not able to get the default value which i am putting while creating schema</p>
  <p>Current Output:</p>
  <pre><code>|col1|col2|
  |    |    |
  </code></pre>
  <p>expected Output:</p>
  <pre><code>|col1|col2|
  |yes | no |
  </code></pre>