Closed chrismo closed 2 days ago
Good catch. Did some digging this is caused by the parser getting tripped up when parsing operators that can have zero arguments:
(There are already guards for this for fuse and shape)
Verified in Zed commit f497079.
Repeating the user's original program, it now parses and produces the expected result regardless of its name.
$ zq -version
Version: v1.16.0-6-gf4970799
$ zq -z 'func headfunc(): ( 1 ) headfunc()'
1
Thanks @mattnibs!
v1.16.0
It seems the parser isn't grabbing the entire name of the user-defined op as one thing.