[QUESTION] How many times should be the function create_name
called when executing a query?
#3900
Labels
help wanted
Extra attention is needed
Describe the bug
A clear and concise description of what the bug is.
Related to this function: https://github.com/apache/arrow-datafusion/blob/master/datafusion/expr/src/expr.rs#L951
To Reproduce
I add
println
here to check if the function is called:note that the
println
command doesn't get the name ofe
to avoid recursive function calls.Then I ran a really simple query in the datafusion-cli, and got the following result:
It is a little weird to me that the function
create_name
is called 18 times.I also tested by constructing the expression directly:
, and this works fine:
Expected behavior
I guess the function
create_name
should only be called once for each expression.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: