Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

tolkonepiu
Copy link
Contributor

Add support for ClickHouse

@@ -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 {
Copy link
Member

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?

Copy link
Contributor Author

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";
Copy link
Member

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");
Copy link
Member

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;
Copy link
Member

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";
Copy link
Member

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 🙂

@rnorth
Copy link
Member

rnorth commented Feb 11, 2018

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.

@VladRassokhin
Copy link
Contributor

@tolkonepiu Don't you mind if I'd fix code review problems and open new pull request base on your changes?

@mchernyakov
Copy link

mchernyakov commented Aug 23, 2018

@bsideup @VladRassokhin @tolkonepiu Hi guys.
Is there any progress on this pull request? Do you need some help?

@VladRassokhin
Copy link
Contributor

VladRassokhin commented Aug 23, 2018

I'll rebase code onto master, test it and submit separate PR by the end of this week.
Done: #846

@bsideup
Copy link
Member

bsideup commented Sep 5, 2018

superseded by #846

@bsideup bsideup closed this Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants