To print the result you can create a POJO class matching your projected fields and use it on line 38 instead of String.class.
For example:
Table result1 = tableA.select("content, content.hashCode() as h1, hashCode(content) as h2");
tableEnv.toDataSet(result1, HashCodeSelect.class).print();
public static class HashCodeSelect {
public String content;
public int h1;
public int h2;
// toString
}
Regards,
Roman
I'm learning official document
But the example is not complete.
The code is:
Could you tell me
how to print result1
in above code?
(The above code is wrong)
Thanks for your help.