[Proposal] Return Optional in Catalog.getDb and Database.getTable

2021-08-03 Thread 迟成
The replay NPE bug has caused many cases that make all FE down. To avoid this from happening, It’s necessary to check null when get DB and Table object at any time. I suggest that returns Optional object when get DB and Table object to normalize the null check. DdlException and AnalysisException

Re: [Proposal] Return Optional in Catalog.getDb and Database.getTable

2021-08-03 Thread Shuo Wang
+1 迟成 于2021年8月3日周二 下午6:16写道: > The replay NPE bug has caused many cases that make all FE down. > To avoid this from happening, It’s necessary to check null when get DB and > Table object at any time. > I suggest that returns Optional object when get DB and Table object to > normalize the null ch

[Proposal] Collect richer statistical information

2021-08-03 Thread ling miao
Doris's current statistics are only inaccurate table rows and table size. Due to the lack of some more accurate column statistics, the Doris query plan cannot evaluate and select a better plan. Also the current statistical information is not a complete structure. I propose to add a statistical inf

Re: [Proposal] Collect richer statistical information

2021-08-03 Thread ling miao
Add the issue[1] of this proposal. Ling Miao 1. https://github.com/apache/incubator-doris/issues/6370 ling miao 于2021年8月3日周二 下午9:36写道: > Doris's current statistics are only inaccurate table rows and table size. > Due to the lack of some more accurate column statistics, the Doris query > plan