[FEAT MERGE] Lob SQL refactoring (Mem-LobLocator, expressions and dbms_lob adaptions)
Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
@ -78,8 +78,10 @@ int ObExprSTArea::eval_st_area(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res)
|
||||
omt::ObSrsCacheGuard srs_guard;
|
||||
const ObSrsItem *srs = NULL;
|
||||
ObString wkb = gis_datum->get_string();
|
||||
|
||||
if (OB_FAIL(ObGeoExprUtils::get_srs_item(ctx, srs_guard, wkb, srs, true, N_ST_AREA))) {
|
||||
if (OB_FAIL(ObTextStringHelper::read_real_string_data(temp_allocator, *gis_datum,
|
||||
gis_arg->datum_meta_, gis_arg->obj_meta_.has_lob_header(), wkb))) {
|
||||
LOG_WARN("fail to get real string data", K(ret), K(wkb));
|
||||
} else if (OB_FAIL(ObGeoExprUtils::get_srs_item(ctx, srs_guard, wkb, srs, true, N_ST_AREA))) {
|
||||
LOG_WARN("fail to get srs item", K(ret), K(wkb));
|
||||
} else if (OB_FAIL(ObGeoExprUtils::build_geometry(temp_allocator, wkb, geo, srs, N_ST_AREA))) {
|
||||
LOG_WARN("get geo by wkb failed", K(ret));
|
||||
|
||||
Reference in New Issue
Block a user