-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 ClickHouse support #498
Conversation
e372567
to
fa3b12e
Compare
@@ -78,9 +81,9 @@ public void test() throws SQLException { | |||
} | |||
} | |||
|
|||
private void performSimpleTest(String jdbcUrl) throws SQLException { | |||
private void performSimpleTest(String jdbcUrl, boolean pmdKnownBroken) throws SQLException { |
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'm not so happy with adding an additional param to the method if it's only needed by on tested class.
The tests will fail if not set?
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.
Method getParameterMetaData not implemented on clickhouse jdbc driver.
|
||
@Override | ||
public String getDriverClassName() { | ||
return "ru.yandex.clickhouse.ClickHouseDriver"; |
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.
Please put the String into a constant.
private String password = ""; | ||
|
||
public ClickHouseContainer() { | ||
super(IMAGE + ":1.1.54310"); |
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.
Default Tag in constant please.
|
||
@Override | ||
public String getJdbcUrl() { | ||
return "jdbc:clickhouse://" + getContainerIpAddress() + ":" + getMappedPort(HTTP_PORT) + "/" + databaseName; |
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.
JDBC url prefix in constant.
|
||
@Override | ||
public String getTestQueryString() { | ||
return "SELECT 1"; |
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.
In order to be consistent, the query String could go into a constant as well 🙂
We're shortly going to be merging #574, which changes our build system to Gradle. This is in part intended to make contributions of modules easier (per #564), but unfortunately means that for a short while your PR is going to show merge conflicts with the master branch. I just want to let you know we don't want to create new work for you: we'll take care of the merge conflicts shortly. Please don't worry - we're grateful for your PR and want to help integrate it soon. Thank you. |
@tolkonepiu Don't you mind if I'd fix code review problems and open new pull request base on your changes? |
@bsideup @VladRassokhin @tolkonepiu Hi guys. |
I'll rebase code onto master, test it and submit separate PR by the end of this week. |
superseded by #846 |
Add support for ClickHouse