asfgit closed pull request #7374: [FLINK-11173][table] Fix the exception
message of proctime attribute validation in TableSourceUtil#validateTableSource
URL: https://github.com/apache/flink/pull/7374
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/sources/TableSourceUtil.scala
b/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/sources/TableSourceUtil.scala
index 15d68900d21..3a0ab503de4 100644
---
a/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/sources/TableSourceUtil.scala
+++
b/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/sources/TableSourceUtil.scala
@@ -138,12 +138,12 @@ object TableSourceUtil {
val proctimeIdx = schema.getFieldNames.indexOf(proctimeAttribute)
// ensure that field exists
if (proctimeIdx < 0) {
- throw new ValidationException(s"Found a RowtimeAttributeDescriptor
for field " +
+ throw new ValidationException(s"Found a processing time attribute:
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 " +
+ throw new ValidationException(s"Found a processing time attribute:
field " +
s"'$proctimeAttribute' but field '$proctimeAttribute' is not of
type TIMESTAMP.")
}
case _ => // nothing to validate
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services