-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Source Clickhouse: Fix exception in case password
field is not provided in configuration
#10214
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception while checking connection: java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.JsonNode.asText()" because the return value of "com.fasterxml.jackson.databind.JsonNode.get(String)" is null at io.airbyte.integrations.source.clickhouse.ClickHouseSource.toDatabaseConfig(ClickHouseSource.java:98) ~[io.airbyte.airbyte-integrations.connectors-source-clickhouse-0.35.1-alpha.jar:?] at io.airbyte.integrations.source.jdbc.AbstractJdbcSource.createDatabase(AbstractJdbcSource.java:282) ~[io.airbyte.airbyte-integrations.connectors-source-jdbc-0.35.1-alpha.jar:?] at io.airbyte.integrations.source.jdbc.AbstractJdbcSource.createDatabase(AbstractJdbcSource.java:62) ~[io.airbyte.airbyte-integrations.connectors-source-jdbc-0.35.1-alpha.jar:?] at io.airbyte.integrations.source.relationaldb.AbstractDbSource.createDatabaseInternal(AbstractDbSource.java:490) ~[io.airbyte.airbyte-integrations.connectors-source-relational-db-0.35.1-alpha.jar:?] at io.airbyte.integrations.source.relationaldb.AbstractDbSource.check(AbstractDbSource.java:65) ~[io.airbyte.airbyte-integrations.connectors-source-relational-db-0.35.1-alpha.jar:?] at io.airbyte.integrations.base.ssh.SshTunnel.sshWrap(SshTunnel.java:205) [io.airbyte.airbyte-integrations.bases-base-java-0.35.1-alpha.jar:?] at io.airbyte.integrations.base.ssh.SshWrappedSource.check(SshWrappedSource.java:37) [io.airbyte.airbyte-integrations.bases-base-java-0.35.1-alpha.jar:?] at io.airbyte.integrations.base.IntegrationRunner.run(IntegrationRunner.java:102) [io.airbyte.airbyte-integrations.bases-base-java-0.35.1-alpha.jar:?] at io.airbyte.integrations.source.clickhouse.ClickHouseSource.main(ClickHouseSource.java:111) [io.airbyte.airbyte-integrations.connectors-source-clickhouse-0.35.1-alpha.jar:?]
By the way don't see anything for UPD: Found it |
marcosmarxm
approved these changes
Feb 9, 2022
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 @CrafterKolyan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/connectors
Connector related issues
area/documentation
Improvements or additions to documentation
community
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Fixes exception in case
password
is not provided for Clickhouse source.Clickhouse source specification doesn't require password.
Config example:
This leads to the following exception
Steps to reproduce
config.json
docker run --rm -i -v config.json:/tmp/config.json airbyte/source-clickhouse check --config /tmp/config.json
Actual:
Expected:
Connection refused
or something like that (if you don't have a running copy of Clickhouse)How
Simply checking if the
password
field is provided.The same way as it is done in
PostgresSource
.airbyte/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java
Lines 98 to 106 in 8749c7a
🚨 User Impact 🚨
No breaking changes
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here