Github user twalthr commented on a diff in the pull request:
https://github.com/apache/flink/pull/5662#discussion_r173786510
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/descriptors/SchemaValidator.scala
---
@@ -148,6 +148,13 @@ object SchemaValidator {
val schema = properties.getTableSchema(SCHEMA)
+ // add all source fields first because rowtime might reference one of
them
+ toScala(sourceSchema).map(_.getColumnNames).foreach { names =>
--- End diff --
Yes @xccui, we could change the logic like this. Do you have cases where we
need such behavior?
---