zhangm365 commented on code in PR #48771: URL: https://github.com/apache/doris/pull/48771#discussion_r1983377674
########## fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java: ########## @@ -271,8 +271,12 @@ private Plan planWithoutLock( // print memo before choose plan. // if chooseNthPlan failed, we could get memo to debug if (cascadesContext.getConnectContext().getSessionVariable().dumpNereidsMemo) { - String memo = cascadesContext.getMemo().toString(); - LOG.info("{}\n{}", ConnectContext.get().getQueryIdentifier(), memo); + Memo memo = cascadesContext.getMemo(); Review Comment: when I set the `SessionVariable().dumpNereidsMemo` is true, and I run the case: ```sql create table mytable ( id int, name string ) COMMENT "my first table" DISTRIBUTED BY HASH(id) BUCKETS 1 PROPERTIES ( "replication_num" = "1" ); insert into mytable values(1, 'hello'); ``` the INSERT sql will occur the error. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org