Skip to content
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

Fix SHOW STATS for boolean #9711

Merged

Conversation

findepi
Copy link
Member

@findepi findepi commented Oct 20, 2021

Fixes #9710
Extracted from #9712

@cla-bot cla-bot bot added the cla-signed label Oct 20, 2021
@findepi findepi force-pushed the findepi/fix-show-stats-for-boolean-da9a9b branch from 428a3f0 to ab12753 Compare October 20, 2021 14:37
@findepi findepi force-pushed the findepi/fix-show-stats-for-boolean-da9a9b branch from c831176 to ada4a62 Compare October 20, 2021 19:38
Comment on lines +216 to +221
if (value == 0) {
representation = "false";
}
else if (value == 1) {
representation = "true";
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe allow some "epsilon" when comparing here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i couldn't figure case where this would be needed, ie some realistic situation where we have eg 0.99.

would prefer to leave it for now, not have 'smarts' that are not needed

@losipiuk losipiuk merged commit 610a87a into trinodb:master Oct 21, 2021
@github-actions github-actions bot added this to the 364 milestone Oct 21, 2021
@findepi findepi deleted the findepi/fix-show-stats-for-boolean-da9a9b branch October 22, 2021 09:55
@findepi findepi mentioned this pull request Oct 22, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

SHOW STATS fails for query returning boolean
3 participants