yiguolei commented on code in PR #58004:
URL: https://github.com/apache/doris/pull/58004#discussion_r2532666171
##########
be/src/geo/wkt_parse.cpp:
##########
@@ -47,5 +47,16 @@ GeoParseStatus WktParse::parse_wkt(const char* str, size_t
len, GeoShape** shape
return ctx.parse_status;
}
+int WktParse::wkt_parse(const char* str, size_t len, WktParseContext& ctx) {
+ wkt_lex_init_extra(&ctx, &ctx.scaninfo);
+ YY_BUFFER_STATE buffer = wkt__scan_bytes(str, len, ctx.scaninfo);
+
+ wkt_::parser parser(&ctx, ctx.scaninfo);
+ int res = parser.parse();
+ wkt__delete_buffer(buffer, ctx.scaninfo);
Review Comment:
之前这里是泄露了?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]