danny0405 commented on a change in pull request #10536: 
[FLINK-15191][connectors / kafka]Fix can't create table source for Kafka if 
watermark or computed column is defined.
URL: https://github.com/apache/flink/pull/10536#discussion_r357487460
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/utils/MemoryTableSourceSinkUtil.scala
 ##########
 @@ -122,7 +123,9 @@ object MemoryTableSourceSinkUtil {
     var fieldTypes: Array[TypeInformation[_]] = _
 
     override def getOutputType: TypeInformation[Row] = {
-      new RowTypeInfo(getTableSchema.getFieldTypes, 
getTableSchema.getFieldNames)
+      new RowTypeInfo(
+        TableSchemaUtils.filterGeneratedColumn(getTableSchema).getFieldTypes,
+          TableSchemaUtils.filterGeneratedColumn(getTableSchema).getFieldNames)
 
 Review comment:
   Reuse the generated schema.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to