-
Notifications
You must be signed in to change notification settings - Fork 564
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
Disable spilling in LastWideCombiner if input or state is not serializable (currently has Resource type). #4590
Disable spilling in LastWideCombiner if input or state is not serializable (currently has Resource type). #4590
Conversation
…zable (has type Resource)
@@ -1523,6 +1530,10 @@ using TBaseComputation = TStatefulWideFlowCodegeneratorNode<TWideLastCombinerWra | |||
#endif | |||
}; | |||
|
|||
bool IsTypeSerializable(const TType* type) { | |||
return !type->IsResource(); |
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.
As far as I understand there are more non-serializable types.
Here are all possible types:
ydb/ydb/library/yql/minikql/mkql_node.h
Line 131 in f2efea6
#define MKQL_TYPE_KINDS(XX) \ |
And all the types that are not listed here are non-serializable:
bool HasOptionalFields(const TType* type) { |
Also, I think we can use ctx.Mutables.SerializableValues
to get indexes of serializable values
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 and I agree with you. Will add.
⚪
|
⚪
|
Fix overriding allowSpilling flag.
⚪
|
⚪
|
Changelog entry
Disable spilling in LastWideCombiner if input or state is not serializable (currently has Resource type).
Changelog category
Additional information
...