You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by "ZT.Ren" <18...@163.com> on 2020/11/11 07:22:54 UTC

有没有办法把flink Row类转换为Object

基于flink做二次开发中,需要将flink SQL执行结果打印到会话中,会话中执行结果打印流程固定打印List<Object>类型数据。
大部分查询引擎(比如presto)都会在ResultSet中提供getObject方法,flink中如何实现?

Re: 有没有办法把flink Row类转换为Object

Posted by Jark Wu <im...@gmail.com>.
你要的是这个功能么? 1.11 上已经支持了。

CloseableIterator<Row> result = Table#execute#collect()

On Wed, 11 Nov 2020 at 15:23, ZT.Ren <18...@163.com> wrote:

> 基于flink做二次开发中,需要将flink SQL执行结果打印到会话中,会话中执行结果打印流程固定打印List<Object>类型数据。
> 大部分查询引擎(比如presto)都会在ResultSet中提供getObject方法,flink中如何实现?