You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/02/28 06:40:09 UTC

[GitHub] [skywalking] haoyann commented on issue #6455: Database Slow Statements return error:Cannot return null for non-nullable type: 'String' within parent 'SelectedRecord' (/readSampledRecords[0]/name)

haoyann commented on issue #6455:
URL: https://github.com/apache/skywalking/issues/6455#issuecomment-787404958


   https://github.com/apache/skywalking/blob/19d4a77235de37f47c3b97cff0118fddbdb565e3/oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/listener/MultiScopesAnalysisListener.java#L206-L210
   
   @wu-sheng  `StringUtil.isEmpty(sqlStatement)` check  move out of the loop , can it be changed like this? 
   ```
               if (StringUtil.isEmpty(slowStatementBuilder.getStatement())) {
                   slowStatementBuilder.setStatement("[No statement]/" + span.getOperationName());
               }
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org