yangzhg commented on code in PR #8958: URL: https://github.com/apache/incubator-doris/pull/8958#discussion_r847874533
########## be/src/geo/geo_functions.cpp: ########## @@ -236,7 +236,8 @@ void GeoFunctions::st_contains_prepare(doris_udf::FunctionContext* ctx, if (str->is_null) { contains_ctx->is_null = true; } else { - contains_ctx->shapes[i] = GeoShape::from_encoded(str->ptr, str->len); + contains_ctx->shapes[i] = + std::shared_ptr<GeoShape>(GeoShape::from_encoded(str->ptr, str->len)); Review Comment: shapes may share at line 275 -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org