Hi All,

Thank you Rafia for the suggestions.
I split both the bugs in 2 different commits, attaching the patches here.

For bug1, I added the test case for NULL values too.

For bug 2, I only changed matview.c and added no test caseĀ as the timings are not constant.

I ran the regression tests for both the patches and all tests succeeded in both cases.

Regards,
Surya Poondla