iris-hep / func_adl

Construct hierarchical data queries using SQL-like concepts in python
MIT License
8 stars 4 forks source link

`Unknown type for name Zip` warning #123

Open masonproffitt opened 1 year ago

masonproffitt commented 1 year ago

Executing this code (in the func-adl-uproot repository):

from func_adl_uproot import UprootDataset
ds = UprootDataset('tests/vectors_tree_file.root')
ds.Select(lambda row: Zip([row.int_vector_branch, row.float_vector_branch]))

gives me Unknown type for name Zip, though the query still seems to work fine. It looks like it comes from this line:

https://github.com/iris-hep/func_adl/blob/9be9f1825daab4375485ec26a91296b74e181e15/func_adl/type_based_replacement.py#L894

gordonwatts commented 1 year ago

Ah - interesting! This must be some edge case - it is supposed to assume Any when it can't determine anything about the types.