[
https://issues.apache.org/jira/browse/FLINK-11173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timo Walther closed FLINK-11173.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
1.7.2
1.6.4
Fixed in master: c09dc96a460a4947a348639c10d52ed56360fb96
Fixed in 1.7: e2daaaaba59e79cbef6bbf80309beb097310c2fb
Fixed in 1.6: 46820483140946301cc4f13b353a94081b9b34d9
> Proctime attribute validation throws an incorrect exception message
> -------------------------------------------------------------------
>
> Key: FLINK-11173
> URL: https://issues.apache.org/jira/browse/FLINK-11173
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Reporter: vinoyang
> Assignee: TANG Wen-hui
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.6.4, 1.7.2, 1.8.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In {{TableSourceUtil#validateTableSource, when uses
> DefinedProctimeAttribute}} (proctime), it throws an incorrect exception
> message :
>
> {code:java}
> tableSource match {
> case p: DefinedProctimeAttribute if p.getProctimeAttribute != null =>
> val proctimeAttribute = p.getProctimeAttribute
> val proctimeIdx = schema.getFieldNames.indexOf(proctimeAttribute)
> // ensure that field exists
> if (proctimeIdx < 0) {
> throw new ValidationException(s"Found a RowtimeAttributeDescriptor for
> field " +
> s"'$proctimeAttribute' but field '$proctimeAttribute' does not exist
> in table.")
> }
> // ensure that field is of type TIMESTAMP
> if (schema.getFieldTypes()(proctimeIdx) != Types.SQL_TIMESTAMP) {
> throw new ValidationException(s"Found a RowtimeAttributeDescriptor for
> field " +
> s"'$proctimeAttribute' but field '$proctimeAttribute' is not of type
> TIMESTAMP.")
> }
> case _ => // nothing to validate
> }
> {code}
> It still contains the keyword "RowtimeAttributeDescriptor".
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)