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

More generic Cache key for Group by #338

Merged
merged 1 commit into from Jul 30, 2020

Conversation

joka921
Copy link
Member

@joka921 joka921 commented May 8, 2020

The cache key for group by previously used the variable names instead of the column indices.
This triggered cache misses when the same query was reused with renamed variables.
This PR fixes this issue.

@niklas88
Copy link
Member

LGTM after fixing syntax issue

case AggregateType::AVG:
return "AVG";
default:
AD_THROW(ad_semsearch::Exception::CHECK_FAILED, "Illegal/unimplemented enum value in AggregateTyppeAsString. Should never happen, please report this");
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: 'Type' instead of 'Typpe'

- correctly reflects the calculated aggregates and
- uses column indices instead of variable names
@joka921 joka921 merged commit 491f23b into ad-freiburg:master Jul 30, 2020
@joka921 joka921 deleted the f.selectStar branch September 13, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants