Skip to content

Fix: constant ALIAS with parallel replicas#77210

Open
yakov-olkhovskiy wants to merge 1 commit intomasterfrom
fix-const-alias
Open

Fix: constant ALIAS with parallel replicas#77210
yakov-olkhovskiy wants to merge 1 commit intomasterfrom
fix-const-alias

Conversation

@yakov-olkhovskiy
Copy link
Member

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix: constant ALIAS selected with parallel replicas resulting THERE_IS_NO_COLUMN exception.

closes #76925

@clickhouse-gh
Copy link
Contributor

clickhouse-gh bot commented Mar 6, 2025

Workflow [PR], commit [ef71026]

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Mar 6, 2025
roots.push_back(&node);

/// Preserve constants
if (node.type == ActionType::COLUMN && isColumnConst(*node.column))
Copy link
Member

Choose a reason for hiding this comment

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

Is it about a constant that appeared in this ActionDAG and supposed to be a part of outputs?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, it's all result of ActionsChain generation where const column would not propagate from projection to previous step because it's const - i.e. doesn't depend on any input... it's all complicated and hacky and apparently doesn't work properly - many tests are failing

Copy link
Member Author

Choose a reason for hiding this comment

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

PS see buildExpressionAnalysisResult - building of ActionsChain actions_chain

@clickhouse-gh
Copy link
Contributor

clickhouse-gh bot commented Apr 8, 2025

Dear @novikd, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logical Error: Error occurred while querying with parallel replicas

2 participants