Hi,
Using Flink Table object how can we print table contents, something like Spark show() method? for example in the following: tableEnv.registerDataSet("Orders", raw, "id, country, num, about"); How can I print the results variable contents? Thanks |
Hi Soheil, There is no print() or show() method in Table. As a workaround, you can convert[1] the Table into a DataSet and perform print() or collect() on the DataSet. You have to pay attention to the differences between DataSet.print() and DataSet.collect(). For DataSet.print(), prints the elements in a DataSet to the standard output stream {@link System#out} of the JVM that calls the print() method. For programs that are executed in a cluster, this method needs to gather the contents of the DataSet back to the client, to print it there. For DataSet.collect(), get the elements of a DataSet as a List. As DataSet can contain a lot of data, this method should be used with caution. Best, Hequn On Sat, Jan 26, 2019 at 3:24 AM Soheil Pourbafrani <[hidden email]> wrote:
|
Thanks a lot. On Sat, Jan 26, 2019 at 10:22 AM Hequn Cheng <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |