title: Flink Table API not able to convert DataSet to DataStream
body: <p>I am using Flink Table API using Java where I want to convert DataSet to DataStream .... Following is my code :</p>
  
  <pre><code>TableEnvironment tableEnvironment=new TableEnvironment();
  Table tab1=table.where("related_value &lt; 2014").select("related_value,ref_id");
  DataSet&lt;MyClass&gt;ds2=tableEnvironment.toDataSet(tab1, MyClass.class);
  DataStream&lt;MyClass&gt; d=tableEnvironment.toDataStream(tab1, MyClass.class);
  </code></pre>
  
  <p>But when I try to execute this program,it throws following exception : </p>
  
  <p><strong>org.apache.flink.api.table.ExpressionException: Invalid Root for JavaStreamingTranslator: Root(ArraySeq((related_value,Double), (ref_id,String))). Did you try converting a Table based on a DataSet to a DataStream or vice-versa?</strong>   I want to know how we can convert DataSet to DataStream using Flink Table API ?? </p>
  
  <p>Another thing I want to know that, for Pattern matching, there is Flink CEP Library available.But is it feasible to use Flink Table API for Pattern Matching ?? </p>