Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/3039#discussion_r94856759 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/FlinkRel.scala --- @@ -120,6 +124,7 @@ trait FlinkRel { case typeName if SqlTypeName.YEAR_INTERVAL_TYPES.contains(typeName) => s + 8 case typeName if SqlTypeName.DAY_INTERVAL_TYPES.contains(typeName) => s + 4 case SqlTypeName.TIME | SqlTypeName.TIMESTAMP | SqlTypeName.DATE => s + 12 + case SqlTypeName.ROW => s + estimateRowSize(fieldList.get(0).getType()).asInstanceOf[Int] --- End diff -- shouldn't `get(0)` access the type at the index of the current field that is folded instead of always the first?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---