Skip to content

Simplyfing dbt-clickhouse codebase to make it easier to develop in dbt Core 2.0#678

Draft
koletzilla wants to merge 6 commits into
mainfrom
ClickHouse/simplify-code-for-dbt-core-2
Draft

Simplyfing dbt-clickhouse codebase to make it easier to develop in dbt Core 2.0#678
koletzilla wants to merge 6 commits into
mainfrom
ClickHouse/simplify-code-for-dbt-core-2

Conversation

@koletzilla

Copy link
Copy Markdown
Contributor

Summary

  • Remove code paths supporting ClickHouse version 22.7. This is a really old version. Newer versions, including latest LTS 26.3 have tons of new features and a huge performance increase [1] that specially improves JOINs operations. Feels like it's no longer interesting to use older versions for these workloads

[1] https://benchmark.clickhouse.com/versions/#version=+.6..3|6..31|2224|1...24&dataset=-&metric=hot&queries=-

return ''

@available
def is_before_version(self, version: str) -> bool:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Isn't that a useful functionality to have in a project?
I understand that the changes in this PR make this function/logic redundant, but generally, it sounds plausible to have version-based checks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

100% agree on this functionality may be useful in the future, but keeping these now-unused functions is adding a bit of noise so I'd like to get rid of it.

I'm encountering many situations were I can't just "copy-paste" logic from dbt-clickhouse to dbt-fusion and that logic is making all things harder to move as I need to figure out how these things should be done in Fusion now.

I prefer to go more lean now: Remove what is unused so I'm faster moving real features to dbt Core. If in the future we need them again, we can just go back in git and copy the code.

I have changed this PR back to a draft as I'm encountering other things that can be simplified. I'll add them here and put it back to a regular PR once I have a nice set of features to review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm finally not going to remove the base methods. We are going to need them for #680

@koletzilla koletzilla marked this pull request as draft July 6, 2026 10:12
@koletzilla

Copy link
Copy Markdown
Contributor Author

PR moved back to draft as it's WIP

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