Conversation
There was a problem hiding this comment.
Why do we need !arguments.isEmpty() &&?
There was a problem hiding this comment.
For the purpose of analysis, we need to choose if the case of no passed arguments falls under "arguments passed by name" or "arguments passed positionally". I chose the latter.
There was a problem hiding this comment.
it would maybe be more symmetric if you had variables
anyArgumentPassedByName
anyArgumentPassedByPosition
400cd64 to
2eeb588
Compare
|
@findepi I added tests. Also, I fixed another bug. PTAL |
There was a problem hiding this comment.
io.trino.testing.DistributedQueryRunner#builder ?
you don't seem to need tpch here.
There was a problem hiding this comment.
see
for how to avoid special casing for primitive types
There was a problem hiding this comment.
slightly related: #13032
assertQuery doesn't verify schema of the result at all, so please remove the comment.
2eeb588 to
460ff4f
Compare
There was a problem hiding this comment.
This class is meant for testing table functions in general, not only the polymorphic ones. I also want to mention "invocation" in the class name, as we might likely add tests for declaring table function.
There was a problem hiding this comment.
it would maybe be more symmetric if you had variables
anyArgumentPassedByName
anyArgumentPassedByPosition
It would be asymmetric elsewhere, because I would still need to handle the case of no arguments. |
The failure occured when the argument type had a primitive java type. Due to boxing, the type check failed.
The failure occured when the table function had a non-zero number of arguments, all of the arguments were declared as not required (default values), and the function was invoked with no arguments.
460ff4f to
0cec709
Compare
Release notes
No docs needed.