Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Mar 30, 2024
1 parent 2b94cd1 commit d109878
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions be/src/service/internal_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ void PInternalService::fetch_table_schema(google::protobuf::RpcController* contr
std::vector<SlotDescriptor*> file_slots;
reader = vectorized::AvroJNIReader::create_unique(profile.get(), params, range,
file_slots);
static_cast<void>(
((vectorized::AvroJNIReader*)(reader.get()))->init_fetch_table_schema_reader());
st = ((vectorized::AvroJNIReader*)(reader.get()))->init_fetch_table_schema_reader();
break;
}
default:
Expand All @@ -700,6 +699,11 @@ void PInternalService::fetch_table_schema(google::protobuf::RpcController* contr
st.to_protobuf(result->mutable_status());
return;
}
if (!st.ok()) {
LOG(WARNING) << "failed to init reader, errmsg=" << st;
st.to_protobuf(result->mutable_status());
return;
}
std::vector<std::string> col_names;
std::vector<TypeDescriptor> col_types;
st = reader->get_parsed_schema(&col_names, &col_types);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public void executeQuery(MysqlCommand mysqlCommand, String originStmt) throws Ex
// Parse sql failed, audit it and return
handleQueryException(e, convertedStmt, null, null);
return;
} catch (ParseEx)
} catch (Exception e) {
// TODO: We should catch all exception here until we support all query syntax.
if (LOG.isDebugEnabled()) {
Expand Down

0 comments on commit d109878

Please sign in to comment.