Github user EEDY commented on a diff in the pull request: https://github.com/apache/incubator-trafodion/pull/1288#discussion_r150739956 --- Diff: core/sql/sqlcomp/CmpDescribe.cpp --- @@ -3059,6 +3061,54 @@ short CmpDescribeSeabaseTable ( outputLongLine(*space, viewtext, 0); + //display comment for VIEW + if (objectUID > 0) + { + if (cmpSBD.switchCompiler()) + { + *CmpCommon::diags() << DgSqlCode(-CAT_UNABLE_TO_RETRIEVE_COMMENTS); + return -1; + } + + ComTdbVirtObjCommentInfo objCommentInfo; + if (cmpSBD.getSeabaseObjectComment(objectUID, COM_VIEW_OBJECT, objCommentInfo, heap)) + { + *CmpCommon::diags() << DgSqlCode(-CAT_UNABLE_TO_RETRIEVE_COMMENTS); + return -1; --- End diff -- Yes, we should. I will add compiler switch-back for all these error paths.
---