Doris支持流式查询吗

Viewed 43

版本:2.0.12

// 设置流式查询参数
stmt = conn.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
stmt.setFetchSize(Integer.MIN_VALUE);

1 Answers

Doris 兼容 MySQL 协议提供的流式读取方法,使用流式读取的要求是设置FetchSize=Integer.MIN_VALUE 和 ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY