title: Saving DataSet<Row> as CSV
body: <p>Is it possible to save the <code>DataSet&lt;Row&gt;</code> as CSV output? <code>toDataSet</code> API expects <code>Row.class</code> and <code>writeAsCSV</code> expects Tuple. Could you please help?</p>
  
  <pre><code>DataSet&lt;Row&gt; finalResult = tEnv.toDataSet(flattenedTripByGender, Row.class);
  finalResult.writeAsCsv("../data/tripbygender.csv");
  </code></pre>
  
  <p>And this is an error:</p>
  
  <pre><code>Caused by: java.lang.ClassCastException: org.apache.flink.api.table.Row cannot be cast to org.apache.flink.api.java.tuple.Tuple at org.apache.flink.api.java.io.CsvOutputFormat.writeRecord(CsvOutputFormat.java:44)
  </code></pre>
  
  <p>Aruna</p>