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

Fix the getVersionColumnForReplacingMergeTree() to support replicated tables properly #343

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

IlyaTsoi
Copy link
Contributor

  1. In the current logic the getVersionColumnForReplacingMergeTree() returns only version_column from a replicated table definition (here versionColumn = parameterArray[2].trim();), but a is_deleted column migth be there too.

  2. It's unnecessary to have separate if clauses for replicated and nonreplicated tables, we can union them.

…eturns only version_column from a replicated table definition (here `versionColumn = parameterArray[2].trim();`), but a is_deleted column migth be there too.

2. It's unnecessary to have separate if clauses for replicated and nonreplicated tables, we can union them.
@subkanthi
Copy link
Collaborator

Please check DBMetadataTest and add your new SQL that you are trying to fix.

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