Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support full join with join condition #366

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

loneylee
Copy link

Changelog category (leave one):

  • New Feature
    Support full join with join condition.

test by spark ut

@kyligence-git
Copy link
Collaborator

Can one of the admins verify this patch?

@loneylee
Copy link
Author

loneylee commented Mar 16, 2023

#334

@loneylee
Copy link
Author

test this please with 1164

1 similar comment
@loneylee
Copy link
Author

test this please with 1164

@loneylee
Copy link
Author

@loneylee
Copy link
Author

test this please with 1164

1 similar comment
@loneylee
Copy link
Author

test this please with 1164

ASTPtr parseToAST(const Names & names, const substrait::Expression & rel);
void parseFunctionArgumentsToAST(const Names & names, const substrait::Expression_ScalarFunction & scalar_function, ASTs & ast_args);
ASTPtr parseArgumentToAST(const Names & names, const substrait::Expression & rel);
ActionsDAGPtr convertASTToActions(const NamesAndTypesList & name_and_types, const ASTPtr & ast);
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
Author

Choose a reason for hiding this comment

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

done

pb_util::JsonOptions options;
std::string json;
pb_util::MessageToJsonString(rel, &json, options);
LOG_DEBUG(&Poco::Logger::get("SerializedPlanParser"), "substrait plan:{}", json);
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里是不是可以搞一个util函数专门做json的序列化

Copy link
Author

Choose a reason for hiding this comment

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

replace with debugstring

@loneylee
Copy link
Author

test this please with 1164

Copy link
Collaborator

@liuneng1994 liuneng1994 left a comment

Choose a reason for hiding this comment

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

LGTM

@zzcclp zzcclp merged commit 0c8ea4e into Kyligence:clickhouse_backend Mar 23, 2023
@loneylee loneylee deleted the fulljoin branch March 23, 2023 07:06
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.

4 participants