-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add initial clickhouse support #4057
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, thank you.
I left a few minor comments.
The build is currently failing because I think you should add ClickHouse as dependency for the integration tests in setup.py.
base.ischema_names["UInt256"] = INTEGER | ||
|
||
register_custom_type(custom_types.common.Array, ArrayTypeClass) | ||
register_custom_type(custom_types.ip.IPv4, NumberTypeClass) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IPv6 is mapped as string but this one as Number, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the clarificaiton
yield wu | ||
|
||
def _get_db_name(self) -> str: | ||
return getattr(self.config, "database_alias") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is database alias a mandatory config parameter?
As I can see there is a database property as well.
Is it possible to set only database and not database_alias?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
database
parameter is used only for the connection.
database_alias
is used as platform_instance
and most likely should be replaced to it.
Both parameters are not mandatory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clickhouse has schema.table
objects structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ne1r0n : I would recommend using the platform_instance
config going forward and not having database_alias
option in this connector, now that we have platform instance support in the core classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shirshanka I've changed database_alias
to platform_instance
3d4fc8e
to
94b0235
Compare
94b0235
to
56505b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Will merge after CI is green.
Co-authored-by: Shirshanka Das <[email protected]>
Checklist