Fix/oracle av benchmark issues - #10
Open
yassirsalmi wants to merge 3 commits into
Open
yassirsalmi wants to merge 3 commits into
yassirsalmi wants to merge 3 commits into
Conversation
Member
|
We need to add a note to our RESULTS.md clarifying pointing to the commit on which we ran those numbers and that some queries were since updates, so new numbers are WIP. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Population percentage change
Reported problem
Example question:
The existing POP_PCT_CHG_YA expression used LAG, so it returned previous population value not the percentage change:
The population dataset contains only 1982 and 1988. Therefore, OFFSET 1 compares 1988 with the previous available year, 1982. It is not a one-calendar-year comparison.
Fix
The measure now uses LAG_DIFF_PERCENT. Oracle returns the percentage change as a ratio, so it is multiplied by 100 to produce values such as 1.7 for a 1.7% change:
The related absolute-change measure remains:
Its caption and description were updated to use “previous available year” rather than “year ago.”
Question updates
Natural-language wording was updated to use “previous available year” rather than “year ago.”
2. County identity
Reported problem
The current county level treated COUNTY_FIPS as globally unique:
The hierarchy is:
County FIPS codes are local to a state. The same county code can identify different counties in different states, so COUNTY_FIPS alone cannot determine one state.
Attribute dimension fix
The county level now uses the state and county composite key:
The existing hierarchy remains valid:
Analytic View binding fix
The Analytic View binding now uses the same compound key:
3. Security-delay minutes
Reported problem
Example question:
The questions explicitly requested total security-delay minutes, but their golden SQL selected SUM_SECURITY_DELAY_HOURS.
The existing hours measure also rounded each flight’s delay to a whole hour before summing:
This definition had several problems:
Fix
A proper total minutes measure is now added, defined as:
All 16 affected golden SQL queries now select this new created measure
Retained hours measure
SUM_SECURITY_DELAY_HOURS was not removed. It remains available for compatibility, but it now converts the aggregated minute total to exact hours: