-
Notifications
You must be signed in to change notification settings - Fork 25.5k
ESQL: Always estimate size for types #134701
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
Remove the "unknown" size estimates for ESQL types - we were defaulting to 50 bytes each and that's just... always more wrong and making a bad estimate for each type.
Pinging @elastic/es-analytical-engine (Team:Analytics) |
I'm marking this as |
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.
👍
OBJECT(builder().esType("object").unknownSize()), | ||
SOURCE(builder().esType(SourceFieldMapper.NAME).unknownSize()), | ||
OBJECT(builder().esType("object").estimatedSize(1024)), | ||
SOURCE(builder().esType(SourceFieldMapper.NAME).estimatedSize(1024)), |
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.
I wonder if it is worth having even higher estimate for source?
I imagine logs source documents could easily reach 10k
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.
Yeah. Probably is. Let me give it 10k or so.
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.
Usually _source is loaded very temporarily - just row by row - in the reader for things like text
fields. This just about the METADATA _source
thing.
…ways_estimate_size
Remove the "unknown" size estimates for ESQL types - we were defaulting to 50 bytes each and that's just... always more wrong and making a bad estimate for each type.