Lif0820 commented on issue #59037:
URL: https://github.com/apache/doris/issues/59037#issuecomment-3680103708

   > 
我这边找到了问题的部分,是2.0.7和2.1.11的fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java的问题,但我不会调试这个,
 
是2.1.11在处理元数据的时候,涉及到预处理语句都会直接跳过元数据构建,这个时候用useCursorFetch=true就会让客户端一直检查元数据,好像挺严格的,就会导致报错,而4.0.1版本对这个部分又进行了重构,应该也不会导致这个问题
   
   
   谢谢关注!我看到了你的fix,下载了doris-fe-2.1.11-rc01源码,以及你的补丁,编译后进行本地验证,发现这个fix可能未能修复此问题。
   现象是代码实际走的if else分支是:List<String> colLabels = ((LogicalPlanAdapter) 
parsedStmt).getColLabels(),且依旧返回null,并不是SelectStmt。
   
   
我依次尝试了2.x很多版本,想知道为何2.0.7可以返回metadata,后来发现2.0.7及部分2.1早期版本,是代码层抛出不支持ServerPreparedStatement的异常,转为使用JDBC42PreparedStatement。
   
   目前我暂时通过useCursorFetch=false、useServerPrepStmts=false组合来屏蔽该问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to