-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve dimension table handing #13967
Improve dimension table handing #13967
Conversation
Jackie-Jiang
commented
Sep 9, 2024
- Introduce finer control and access on dimension table
- Do not always read the whole row for each lookup. In most cases we only need to access one single value
@@ -219,8 +218,7 @@ private void lookup(ValueBlock valueBlock, ValueAcceptor valueAcceptor) { | |||
} | |||
} | |||
// lookup | |||
GenericRow row = _dataManager.lookupRowByPrimaryKey(primaryKey); | |||
Object value = row == null ? null : row.getValue(_dimColumnName); | |||
Object value = _dataManager.lookupValue(primaryKey, _dimColumnName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
but where lookupValues() method is used? or added for future use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sharp eyes! Yes it is a preparation for #13966
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13967 +/- ##
============================================
- Coverage 61.75% 57.88% -3.87%
- Complexity 207 219 +12
============================================
Files 2436 2612 +176
Lines 133233 143197 +9964
Branches 20636 21986 +1350
============================================
+ Hits 82274 82887 +613
- Misses 44911 53832 +8921
- Partials 6048 6478 +430
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |