Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[RDataFrame] Code that transforms `#var` alias to `R_rdf_sizeof_var` does not respect string literals

クローズ
#23,790 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vepadulano がすでに取り組んでいます。

2026年10月22日 から。

  • #23800 @muntasir-396 による — マージされずにクローズ
  • #23804 @vepadulano による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
71/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp, python
領域
data

調査の方向性

Start with the alias transformation near line 183 of tree/dataframe/src/RDFInterfaceUtils.cxx and reproduce the problem with the provided RDataFrame example. Check how the transformation handles string literals containing #; done means the example prints and stores the original strings, and relevant tests cover this behavior.

索引モデルが issue の本文から書いたものです。

説明

bug in:RDataFrame
Check duplicate issues.
  • Checked for duplicates
Description

The code before
https://github.com/root-project/root/blob/72f8ef3b95285bb0bb61bc8310701021ab52fad8/tree/dataframe/src/RDFInterfaceUtils.cxx#L183
fails when the RDataFrame expression preProcessedExpr contains string literals that contain # characters. In this case, the string literal is wrongly modified altering data used in the expression.

Reproducer
#!/usr/bin/env python3

import ROOT


CPP_CODE = """
std::string
printString(const std::string& s)
{
  std::cout << s << std::endl;
  return s;
}
"""
ROOT.gInterpreter.Declare(CPP_CODE)


ROOT.RDataFrame(1) \
    .Define("col", 'printString("#a")') \
    .Filter('printString("#b"); return true') \
    .Display(("col", )).Print()
# should print "#a" and "#b" to the console and `col` should contain "#a"
# instead, it prints "R_rdf_sizeof_b" and "R_rdf_sizeof_a" to the console and `col` contains "R_rdf_sizeof_a"
ROOT version

This was introduced by 819a3829cc350bc69386a201ee59340f61c35342 and affects all ROOT versions since 6.25.02. Verified using 6.32.20 and 6.40.04.

Installation method

built from source

Operating system

AlmaLinux 9.8

Additional context

No response

主要言語
C++
スター
3.3k
フォーク
1.6k
平均マージ
2日 7時間
マージ済み PR(30日)
180

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

root-project/root のほかの issue

root-project/root の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。