Skip to content

fix(clickhouse_client): support all table engines in schema generation#47

Open
nlenepveu wants to merge 1 commit into
juneHQ:masterfrom
nlenepveu:fix/s3-table-schema-generation
Open

fix(clickhouse_client): support all table engines in schema generation#47
nlenepveu wants to merge 1 commit into
juneHQ:masterfrom
nlenepveu:fix/s3-table-schema-generation

Conversation

@nlenepveu

@nlenepveu nlenepveu commented Nov 15, 2025

Copy link
Copy Markdown

Remove MergeTree-only filter from get_database_tables() to include tables with other engine types (S3, File, etc.) in schema.sql output.

Previously, the query filtered tables to only include those with 'MergeTree' in the engine name using:

  AND position('MergeTree' IN engine) > 0

This caused S3 tables and other non-MergeTree engines to be excluded from schema.sql generation, even though they were valid tables that should be tracked.

The fix removes this restrictive filter while still excluding MaterializedView and Dictionary engines, which have their own dedicated methods.

Fixes schema.sql generation for S3-backed tables and other engine types.

Remove MergeTree-only filter from get_database_tables() to include
tables with other engine types (S3, File, etc.) in schema.sql output.

Previously, the query filtered tables to only include those with
'MergeTree' in the engine name using:
  AND position('MergeTree' IN engine) > 0

This caused S3 tables and other non-MergeTree engines to be excluded
from schema.sql generation, even though they were valid tables that
should be tracked.

The fix removes this restrictive filter while still excluding
MaterializedView and Dictionary engines, which have their own
dedicated methods.

Fixes schema.sql generation for S3-backed tables and other engine types.
@nlenepveu

Copy link
Copy Markdown
Author

Hi @vinayak-mehta, could you please take a look when you get a chance?
Let me know if you’d like any changes and I’ll update right away!

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.

1 participant