This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 0b5b366e562 [minor](stats) truncate min/max if too long #27955 (#27997) 0b5b366e562 is described below commit 0b5b366e562c477f70b94252e4ad0590a0d6f57c Author: AKIRA <33112463+kikyou1...@users.noreply.github.com> AuthorDate: Tue Dec 5 16:43:10 2023 +0800 [minor](stats) truncate min/max if too long #27955 (#27997) --- .../suites/statistics/analyze_stats.groovy | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/regression-test/suites/statistics/analyze_stats.groovy b/regression-test/suites/statistics/analyze_stats.groovy index 21697bbec01..e2ea11b8364 100644 --- a/regression-test/suites/statistics/analyze_stats.groovy +++ b/regression-test/suites/statistics/analyze_stats.groovy @@ -1285,4 +1285,25 @@ PARTITION `p599` VALUES IN (599) result_after_truncate = sql """show column cached stats ${tbl}""" assertEquals(0, result_after_truncate.size()) + sql """ + delete from ${tbl} where analyzetestlimitedk3 >= -2147483648 + """ + sql """ + INSERT INTO `${tbl}` VALUES (-2103297891,1,101,15248,4761818404925265645,939926.283, + 'UTmCFKMbprf0zSVOIlBJRNOl3JcNBdOsnCDt','2022-09-28','2022-10-28 01:56:56','tVvGDSrN6kyn', + -954349107.187117,-40.46286,'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 [...] + '-1559301292834325905', NULL, NULL, NULL, NULL) + """ + + sql """ + ANALYZE TABLE ${tbl} WITH SYNC + """ + + def truncate_test_result = sql """ + SHOW COLUMN CACHED STATS ${tbl}(analyzetestlimitedk12) + """ + assert "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 [...] + assert "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 [...] + + } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org