Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#22,762 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@vepadulano ci sta già lavorando.

Dal 7/7/2026.

  • #23561 di @ravindra-RKB — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
C++
Stelle
3.3k
Fork
1.6k
Merge medio
2g 16h
PR unite (30g)
194

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di root-project/root

Tutte le issue di root-project/root

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.