I'm trying to add a new column to a flink table in Java
Table table = tEnv.sqlQuery(query.getQuery());
table = table.addColumns($("NewColumn"));
but I'm running into this ValidationException
:
org.apache.flink.table.api.ValidationException: Cannot resolve field [NewColumn], input field list:[ExistingColumn1, ExistingColumn2, ...].
I saw a similar example in the flink docs, so I'm not sure what I'm doing wrong here.
I tried running the code in the debugger and it seems to be failing in the resolve
method