add some code for examineplan BatchCommit by SQ