-
Notifications
You must be signed in to change notification settings - Fork 82
Add data source ClickHouse #646
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
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.
Thanks @grieve54706 Looks nice to me.
json_obj = orjson.loads( | ||
orjson.dumps( | ||
data, | ||
option=orjson.OPT_SERIALIZE_NUMPY | ||
| orjson.OPT_PASSTHROUGH_DATETIME | ||
| orjson.OPT_SERIALIZE_UUID, | ||
default=default, | ||
) |
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.
Looks nice. I guess it can also fix #638?
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.
Yes, I will add the keyword resolve
to link #638.
assert response.status_code == 422 | ||
assert response.text is not None | ||
|
||
def test_validate_with_unknown_rule(self, clickhouse: ClickHouseContainer): |
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.
I found the test cases for each data source are duplicate. Maybe we can have an abstract testing function for different data source. WDYT?
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.
They have different parameters about databases. They can not be one abstract function.
return ch | ||
|
||
|
||
@pytest.mark.postgres |
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 it correct? I guess it should be clickhouse?
@pytest.mark.postgres | |
@pytest.mark.clickhouse |
Thanks @grieve54706 |
* Add data source ClickHouse * Make mysql support connection url * Fix marker
Description
Make
POST /v2/ibis/{data_source}/query
support new data sourceClickHouse
Request body
required
required
required
required
required
or
required
Response body
Additional information
We use orjson instead of
ujson
in the Pandas to take more control.Resolve #638 too