Skip to content

[df] fix method call mistaken for column in Define()#22466

Merged
vepadulano merged 2 commits into
root-project:masterfrom
prakharsing7:rdf-define-method-call-column-clash
Jun 3, 2026
Merged

[df] fix method call mistaken for column in Define()#22466
vepadulano merged 2 commits into
root-project:masterfrom
prakharsing7:rdf-define-method-call-column-clash

Conversation

@prakharsing7

Copy link
Copy Markdown
Contributor

A method call on an object can share its name with a column. When that happens, the JIT expression becomes invalid and the Define() call throws a runtime error, even though the user's C++ is correct.

Fixes #22295

  • tested changes locally
  • updated the docs (if necessary)

A method call on an object can share its name with a column. When
that happens, the JIT expression becomes invalid and the Define()
call throws a runtime error, even though the user's C++ is correct.

Fixes root-project#22295

@vepadulano vepadulano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR! I have left minor comments to improve the test.

Comment thread tree/dataframe/test/dataframe_colnames.cxx
Comment thread tree/dataframe/src/RDFInterfaceUtils.cxx
Use a non-zero sentinel value in the helper struct and add a value
assertion so the test proves the correct method result is returned.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 12h 46m 2s ⏱️
 3 865 tests  3 865 ✅ 0 💤 0 ❌
77 162 runs  77 162 ✅ 0 💤 0 ❌

Results for commit 63a66a3.

@vepadulano vepadulano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

@vepadulano vepadulano merged commit f0ee903 into root-project:master Jun 3, 2026
33 checks passed
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.

Expression incorrectly parsed in RDataFrame's Define()

2 participants