Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Problem with RDataFrame Alias when using `.` in the alias name.

Đang mở
#22,762 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@vepadulano đang làm issue này rồi.

Từ ngày 7/7/2026.

  • #23561 của @ravindra-RKB — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

When trying to use RDataFrame Alias using an alias that contains a . in the string the following error message is thrown:
RDataFrame::Alias: cannot define variation "reco.el_e_NOSYS_B". Not a valid C++ variable name.

This is because the function CheckValidCppVarName() checks if the new alias characters are either a letter, an underscore or a number. Since the . is not identified as a neither of these cases the error is thrown.

This was found when matching 2 trees and trying to alias a systematic variation column of the matched tree.
For example:
Original column in the matched tree: truth.variation_customName
Desired alias: truth.variation_commonName

Reproducer

The minimal reproducer can be found here in the following cern box link: https://cernbox.cern.ch/s/c12lOxGVx0vahWy

ROOT version

ROOT Version: 6.40.00
Built for linuxx8664gcc on May 26 2026, 15:56:51
From tags/v6-40-00@v6-40-00

Installation method

Build from source

Operating system

Ubuntu 25.10

Additional context

No response

Ngôn ngữ chính
C++
Star
3.3k
Fork
1.6k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
188

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của root-project/root

Tất cả issue của root-project/root

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.