-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-11227] [table] The DescriptorProperties contains some bounds checking errors #7373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks again for your reminding me of the bug in Best, Xingcan |
hequn8128
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xccui Thanks a lot for the fix. The fix looks good and only left some minor suggestion.
Best, Hequn
| maxLength) | ||
| } | ||
|
|
||
| private def testFixedFieldsValidation(properties: DescriptorProperties): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about rename testFixedFieldsValidation to testFixedIndexedPropertiesValidation?
| } | ||
|
|
||
| @Test(expected = classOf[ValidationException]) | ||
| def testInvalidFixedIndexedProperty(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties
|
Thanks for the review @hequn8128. The methods are renamed according to your comments. Best, Xingcan |
|
@xccui Thanks a lot for the update. +1 to merge. Best, Hequn |
twalthr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @xccui and @hequn8128. Merging...
What is the purpose of the change
This PR aims to fix the bounds checking errors for
validateFixedIndexedProperties()andvalidateArray()inDescriptorProperties.Brief change log
Change the upper bounds of the loops from
< maxIndexto<= maxIndex.Verifying this change
validateArray(), made the last element an invalid one.validateFixedIndexedProperties(), added a new test casevalidateFixedIndexedProperties().Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation