maheshrajus opened a new pull request #4140:
URL: https://github.com/apache/carbondata/pull/4140


   
    ### Why is this PR needed?
    Currently, when we check the exception message like below, it is not 
asserting/failing/catching if the message content is different.
   ```
   intercept[UnsupportedOperationException](
   sql("update test set(a)=(4) where 
id=1").collect()).getMessage.contains("abc")
   ```
   
    ### What changes were proposed in this PR?
   1) Added assert condition like below for validating the exception message 
correctly
   ```
   assert(intercept[UnsupportedOperationException](
   sql("update test set(a)=(4) where 
id=1").collect()).getMessage.contains("abc"))
   ```
   2) Added assert condition to check exception message for some test cases 
which are not checking exception message
   3) Fixed add segment doc heading related issues
    ### Does this PR introduce any user interface change?
    - No
    ### Is any new testcase added?
    - No
   
   


-- 
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:
[email protected]


Reply via email to