Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9984

[DF] Error messages from jitting even if input file does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.18/00
    • Fix Version/s: 6.18/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      any

      Description

      RDF should not try to jit expressions if it could not retrieve the names of TTree branches, e.g. because the file does not exist.

      Reproducer:

      root [0] ROOT::RDataFrame df("t", "doesnotexist.root")
      (ROOT::RDataFrame &) A data frame built on top of the t dataset.
      root [1] auto ddf = df.Define("x", "y+2")
      Error in <TFile::TFile>: file doesnotexist.root does not exist
      Error in <TFile::TFile>: file doesnotexist.root does not exist
      input_line_37:1:46: error: use of undeclared identifier 'y'
      namespace __tdf_0{ auto tdf_f = []() {return y+2
                                                   ^
      Error in <TRint::HandleTermInput()>: std::runtime_error caught: Cannot interpret the following expression:
      y+2
       
      Make sure it is valid C++.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dpiparo Danilo Piparo
                Reporter:
                eguiraud Enrico Guiraud
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Actual Start:
                  Actual End: