-
Notifications
You must be signed in to change notification settings - Fork 25.2k
SQL: ConstantProcessor can now handle NamedWriteable #39876
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
Pinging @elastic/es-search |
Enhance ConstantProcessor to properly serialize complex objects (Intervals) that have their own custom serialization/deserialization mechanism Fix elastic#39875 Update test
run elasticsearch-ci/packaging-sample |
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.
LGTM
@@ -28,7 +31,10 @@ protected ConstantProcessor createTestInstance() { | |||
|
|||
@Override | |||
protected ConstantProcessor mutateInstance(ConstantProcessor instance) throws IOException { | |||
return new ConstantProcessor(randomValueOtherThan(instance.process(null), () -> randomAlphaOfLength(5))); | |||
return new ConstantProcessor(randomValueOtherThan(instance.process(null), |
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.
Why not also keeping the original randomAlphaOfLength
? Using a randomBoolean
you could switch between randomAlphaOfLength
and an IntervalDayTime
instance.
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.
Because the randomAlpha is already tested from the initial instance which gets serialized/deserialized so using it again wouldn't change much.
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.
LGTM. Left one tests related question.
Enhance ConstantProcessor to properly serialize complex objects (Intervals) that have their own custom serialization/deserialization mechanism Fix #39875
Enhance ConstantProcessor to properly serialize complex objects
(Intervals) that have their own custom serialization/deserialization
mechanism
Fix #39875