title: trait Row is abstract; cannot be instantiated
body: <p>I have the following code trying to merge two rows:</p>
  
  <pre><code>  import org.apache.spark.sql._
  
    def mergeRow(row1:Row, row2:Row):(Boolean, Row)=  {
        var z:Array[String] = new Array[String](row1.length)
        var hasDiff = false
           :
           :
        if (hasDiff) {
            (true, new Row(z))
        } else {
            (true, row2)
        }
      }
  </code></pre>
  
  <p>And I got the errors:</p>
  
  <pre><code>error: trait Row is abstract; cannot be instantiated
               (true, new Row(z))
  </code></pre>
  
  <p>Anyone know how I could fix this ? Thanks!</p>