#114 Clickhouse Dialect GetTableColumns Fails To Return ColumnTypes #115
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.
This addresses issue #114.
This may also not be the way that the team wishes to move forward so I will do my best to explain what I think is going on and hopefully you guys can take it from here.
When running a clickhouse sink using an HTTP connection, the go driver will not be able to determine
ColumnTypes()and simply responds with an empty set of data... hence the bug I created yesterday.Ok, so why not just use a TCP connection and call it a day?
That doesn't work either because the query that fetches the tables IE:
information_schemaonly works over HTTP and will also crash out.There is one more caveat... with a localhost connection we currently switch to using HTTP by default in which compounds the issue.
This PR removes the localhost hack and patches the fetching of tables for clickhouse in as surgical of a manner as possible.
Having said that... this means that the only way moving forward to run a clickhouse sink will be with a TCP connection and perhaps some additional documentations and or warnings should be added in the case this is merged.