This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 6f8169e7d6e branch-4.1: [fix](test) Remove the st_within case from the
constant shape geo test (#70628)
6f8169e7d6e is described below
commit 6f8169e7d6ec4233ae1780d4662e0efb7191bdef
Author: guptashivam04 <[email protected]>
AuthorDate: Mon Nov 16 15:21:04 2026 +0530
branch-4.1: [fix](test) Remove the st_within case from the constant shape
geo test (#70628)
### What problem does this PR solve?
Issue Number: None
Related PR: #70302, #70595
PR Type: Bug fix (test)
Problem Summary:
The backport of #70302 to branch-4.1 (#70595) added a case to
`VGeoFunctionsTest.function_geo_st_contains_const_polygon` that runs
`st_within`. `st_within` only exists on master (#65790), so on
branch-4.1 the function lookup returns null and the test crashes with an
ASAN SEGV when it opens the function. That aborts the whole BE UT run,
e.g. the beut job of #70597.
This removes the `st_within` case from the test. The `st_contains` cases
and the across-blocks test are unchanged.
### Release note
None
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready
Co-authored-by: Shivam Gupta <[email protected]>
---
be/test/exprs/function/function_geo_test.cpp | 5 -----
1 file changed, 5 deletions(-)
diff --git a/be/test/exprs/function/function_geo_test.cpp
b/be/test/exprs/function/function_geo_test.cpp
index 282be6f9508..264be7dc657 100644
--- a/be/test/exprs/function/function_geo_test.cpp
+++ b/be/test/exprs/function/function_geo_test.cpp
@@ -441,11 +441,6 @@ TEST(VGeoFunctionsTest,
function_geo_st_contains_const_polygon) {
ConstShapeRunner runner("st_contains", 0);
EXPECT_EQ(expected, runner.run(polygon, points));
}
- // The polygon is the second argument of st_within.
- {
- ConstShapeRunner runner("st_within", 1);
- EXPECT_EQ(expected, runner.run(polygon, points));
- }
// An invalid constant makes every row NULL.
{
ConstShapeRunner runner("st_contains", 0);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]