hi, how do I implement AsyncLookupFunctions correc...
# troubleshooting
c
hi, how do I implement AsyncLookupFunctions correctly? I implemented a
AsyncLookupFunction
and try to call it with this example snippet:
Copy code
WITH tbl AS (SELECT 123 as id, '456' as pmntid, 'IDR' as cur) SELECT * from tbl join Lateral Table(cashlessInfo(id, pmntid, cur))
but I get the following error:
No match found for function signature cashlessInfo(<NUMERIC>, <CHARACTER>, <CHARACTER>)
the eval
function
has the following signature: https://nightlies.apache.org/flink/flink-docs-release-1.17/api/java/org/apache/flink/table/functions/AsyncLookupFunction.html
eval(CompletableFuture<Collection<RowData>> future, Object... keys)
I tried setting a
@FunctionHint(input = Array(new DataTypeHint("INT"),new DataTypeHint("STRING"),new DataTypeHint("STRING")))
but that didn't help either. unfortunately there is no documentation on the
AsyncLookupFunction
so I feel like I quite in the dark here. Any help/advice in which direction to investigate furtehr?