sql-bi / VertiPaq-Analyzer

MIT License
77 stars 14 forks source link

Fix to support composite key columns (GroupByColumns) in StatExtractor #159

Closed albertospelta closed 1 month ago

albertospelta commented 1 month ago

This update resolves an issue in StatExtractor where an error occurred during the extraction of relationship statistics when one of the columns in the relationship was part of a composite key (GroupByColumns). The error message was: "Column [] is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression." This fix applies only to models with a compatibility level of 1200 or higher, as GroupByColumns is not available in levels 1100 and 1103.