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

Clickhouse #397

Merged
merged 19 commits into from
Jan 17, 2025
Merged

Clickhouse #397

merged 19 commits into from
Jan 17, 2025

Conversation

albertobruin
Copy link
Collaborator

No description provided.


type ClickHouseClient interface {
RunQueryWithoutResult(ctx context.Context, query *query.Query) error
Select(ctx context.Context, query *query.Query) ([][]interface{}, error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can put SelectWithSchema and Ping here

return err
}

for _, queryString := range materializedQueries {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In another operators we seem to be running only one query per task , will this be different in click house ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it will be. Some platforms allow you to send several statements in a single batch something like :

SELECT * from table;
INSERT ....;
DELETE ... FROM TABLE;

As long as they are separated by a ;

Some others don't allow batches, you need to send statements one by one.
Other examples of this besides Clickhouse are Athena or Synapse

@albertobruin albertobruin merged commit c51233a into main Jan 17, 2025
11 checks passed
@albertobruin albertobruin deleted the feature/clickhouse branch January 17, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants