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

Extend column statistics analysis to include columns with GroupByColumns #141

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

albertospelta
Copy link
Collaborator

This commit fixes an issue where the cardinality of a column would result in zero if the column had GroupByColumns specified and IsAvailableInMDX=false. This occurred because statistics for these columns are not available in the DMV $SYSTEM.DISCOVER_STORAGE_TABLES (see WHERE LEFT(TABLE_ID, 2) = 'H$' in PopulateColumnsCardinality).

This commit fixes an issue where the cardinality of a column would result in zero if the column had `GroupByColumns` specified and `IsAvailableInMDX=FALSE`. This occurred because statistics for columns with IsAvailableInMDX set to FALSE are not available in the DMV $SYSTEM.DISCOVER_STORAGE_TABLES (see WHERE LEFT(TABLE_ID, 2) = 'H$' in PopulateColumnsCardinality)
@albertospelta albertospelta merged commit a3dd91f into master Aug 19, 2024
1 check passed
@albertospelta albertospelta deleted the alberto/groupby-colstats branch August 19, 2024 13:16
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.

1 participant