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

[CH-383] Fix 'Unknown identifier' exception #385

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

exmy
Copy link

@exmy exmy commented Mar 28, 2023

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in official stable or prestable release)

#383

@kyligence-git
Copy link
Collaborator

Can one of the admins verify this patch?

@liuneng1994
Copy link
Collaborator

test this please

ActionsDAG::NodeRawConstPtrs args = {require_node};
const auto & node = actionsDag->addFunction(function_builder, args, item);
actionsDag->addOrReplaceInOutputs(node);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么会出现require的列不存在于actionDag的output中呢

Copy link
Author

Choose a reason for hiding this comment

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

这种 case:where event.log_extra['abflags_v2'] is not null and hdid is not null and hdid != '',
output 是 and(and(and(isNotNull(event),isNotNull(arrayElement(tupleElement(event,1_0),abflags_v2_1))),isNotNull(hdid)),not(equals(hdid,_2))) ,
arrayElement(tupleElement(event,1_0),abflags_v2_1)) 是中间结果,不在 output 中

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

@liuneng1994 liuneng1994 merged commit f57ffab into Kyligence:clickhouse_backend Mar 31, 2023
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.

3 participants