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: add more driver connection options #6422

Merged
merged 3 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use %w to wrap the original error
rohithreddykota committed Jan 15, 2025
commit cb311939e84a69b7c8812090551ae8580640c52b
2 changes: 1 addition & 1 deletion runtime/drivers/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ func (d driver) Open(instanceID string, config map[string]any, st *storage.Clien
if value, ok := config[key].(string); ok {
parsedDuration, err := time.ParseDuration(value)
if err != nil {
return fmt.Errorf("failed to parse '%s': %v", key, err)
return fmt.Errorf("failed to parse '%s': %w", key, err)
}
*field = parsedDuration
}