Skip to content

fix tck expression lead to server core dump#651

Merged
ljcui merged 5 commits intoTuGraph-family:masterfrom
lipanpan03:fix_tck_expression
Sep 3, 2024
Merged

fix tck expression lead to server core dump#651
ljcui merged 5 commits intoTuGraph-family:masterfrom
lipanpan03:fix_tck_expression

Conversation

@lipanpan03
Copy link
Contributor

fix tck expression lead to server core dump

thread_local LRUCacheThreadUnsafe<std::string, std::shared_ptr<ExecutionPlanV2>> tls_plan_cache;
std::shared_ptr<ExecutionPlanV2> plan;
geax::common::ObjectArenaAllocator objAlloc_;
LOG_INFO() << script;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个info级别不太合适,会一直刷日志, 用debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,已修改


std::string demangle(const char* mangled) {
int status = -4; // some arbitrary value to eliminate the compiler warning
std::unique_ptr<char, void(*)(void*)> res{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是解决啥问题

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是解决啥问题

这个是用来打印出类型转换失败时的类型信息的,需要用这个把PN4geax8frontend4ExprE转换为geax::frontend::Expr

@ljcui ljcui merged commit e3b2dd2 into TuGraph-family:master Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants