这是indexloc提供的服务,不要输入任何密码
Skip to content

fix partial introspection of qualified table names #14

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

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

BenoitRanque
Copy link
Contributor

The connector was recently modified to allow for qualified table names, after it became apparent the previous assumptions that all clickhouse tables would always live in the default schema proved false.

Those changes missed that we also relied on this assumption when introspecting filtered tables, that is only fetching introspection for specific tables.

This fix changes the assumption from "table names are arrays with a single string" to "table names are arrays with at least one string". We filter using the last string in the array.

Note, this behavior is still incorrect. We now ignore the qualified part of the table name, so when asked to introspect table schema1.table1 we would also return introspection result for schema2.table1

We can probably fix that too if it's a problem?

Copy link
Contributor

@codedmart codedmart left a comment

Choose a reason for hiding this comment

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

Is this a breaking change for users upgrading to this version?

@BenoitRanque
Copy link
Contributor Author

This is not a breaking change. Rather this should allow the connector to work correctly for users affected by this bug

@BenoitRanque BenoitRanque merged commit f647730 into main Feb 21, 2024
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