Skip to content

[6.40] [df] Consider quoted strings in collection size short syntax - #23826

Open
root-project-bot wants to merge 2 commits into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_23804
Open

root-project-bot wants to merge 2 commits into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_23804

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #23804, requested by @vepadulano.

vepadulano and others added 2 commits October 24, 2026 09:39
The regex pattern present before was not refined enough to consider the
case where the target #varname could happen to be within a quoted
string. Improve the regex pattern in ParseRDFExpression and add a more
complicated test case in dataframe_interface.cxx

Fixes root-project#23790

(cherry picked from commit cb1b496)
Also add a test where the user defines a column of type std::string with
a value that could be ambiguous w.r.t. the short syntax for collection
sizes. RDataFrame should not substitute the string value in this case,
it should be returned as-is to downstream actions.

Co-authored-by: muntasir-396 <muntasirmamun396@gmail.com>
(cherry picked from commit c4011b2)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants