-
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
[ntuple] support rules with source class != dest class #18357
base: master
Are you sure you want to change the base?
Conversation
Test Results 18 files 18 suites 4d 16h 1m 6s ⏱️ Results for commit db746d4. |
for (auto linkId : fieldDesc.GetLinkIds()) { | ||
const auto &subFieldDesc = desc.GetFieldDescriptor(linkId); | ||
regularSubfields.insert(subFieldDesc.GetFieldName()); | ||
} | ||
|
||
rules = FindRules(&fieldDesc); | ||
|
||
// If the field's type name is not the on-disk name but we found a rule, we know it is valid to read | ||
// on-disk data because we found the rule according to the on-disk (source) type name and version/checsksum. |
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.
// on-disk data because we found the rule according to the on-disk (source) type name and version/checsksum. | |
// on-disk data because we found the rule according to the on-disk (source) type name and version/checksum. |
Maybe related: https://its.cern.ch/jira/browse/ROOT-114 |
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.
LGTM, see Giacomo's comment about a typo.
Note that, if I remember correctly, it is also possible to write entire class rename rules with only sourceClass
and targetClass
, but no source
and target
. I believe then all members are subject to automatic evolution, but should be checked. In a first implementation, we could require explicit copying of all members by the rule.
Including class rename rules.