pnowojski commented on a change in pull request #6787: [FLINK-8577][table] Implement proctime DataStream to Table upsert conversion URL: https://github.com/apache/flink/pull/6787#discussion_r236177806
########## File path: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/TableEnvironment.scala ########## @@ -1112,13 +1129,17 @@ abstract class TableEnvironment(val config: TableConfig) { exprs flatMap { case _: TimeAttribute => None - case UnresolvedFieldReference(_) if referenced => + case UnresolvedFieldReference(_) | Key(UnresolvedFieldReference(_)) if referenced => // only accept the first field for an atomic type throw new TableException("Only the first field can reference an atomic type.") case UnresolvedFieldReference(name: String) => referenced = true // first field reference is mapped to atomic type Some((0, name)) + case Key(UnresolvedFieldReference(name: String)) => + referenced = true Review comment: ditto: another code duplication. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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