yiguolei commented on code in PR #66018:
URL: https://github.com/apache/doris/pull/66018#discussion_r3701518872
##########
be/src/format/jni/jni_reader.cpp:
##########
@@ -214,48 +214,77 @@ Status JniReader::get_table_schema(std::string&
table_schema_str) {
// =========================================================================
Status JniReader::close() {
- if (!_closed) {
+ if (_closed) {
+ return Status::OK();
+ }
+ if (!_scanner_opened) {
_closed = true;
- JNIEnv* env = nullptr;
Review Comment:
为啥这堆代码不是在_collect_profile_before_close 里做呢?
--
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]