-
Notifications
You must be signed in to change notification settings - Fork 573
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 sql.Valuer support for all types #1144
Conversation
The existing implementation of strings value.Valuer only checked if the return type was a `string` and none of the other supported types and so changed to send it back through AppendRow again for those supported types to be checked again.
Hi @deankarn |
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.
Overall looks good. Can you please see my question?
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.
Good piece of work. Thank you!
@deankarn there is a conflict to be resolved. Can you take a look? I would like to release tomorrow. |
@jkaflik I will make it my priority as soon as I am at my desk in an hour. |
@jkaflik I have resolved the conflicts in the contributors list files, no code changes whatsoever :) |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go) | require | minor | `v2.15.0` -> `v2.16.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>ClickHouse/clickhouse-go (github.com/ClickHouse/clickhouse-go/v2)</summary> ### [`v2.16.0`](https://github.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2160-2023-12-01----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---) [Compare Source](https://github.com/ClickHouse/clickhouse-go/compare/v2.15.0...v2.16.0) #### What's Changed ##### Enhancements 🎉 - Add sql.Valuer support for all types by [@​deankarn](https://github.com/deankarn) in [https://github.com/ClickHouse/clickhouse-go/pull/1144](https://github.com/ClickHouse/clickhouse-go/pull/1144) ##### Fixes 🐛 - Fix DateTime64 range to actual supported range per ClickHouse documentation by [@​phil-schreiber](https://github.com/phil-schreiber) in [https://github.com/ClickHouse/clickhouse-go/pull/1148](https://github.com/ClickHouse/clickhouse-go/pull/1148) #### New Contributors - [@​phil-schreiber](https://github.com/phil-schreiber) made their first contribution in [https://github.com/ClickHouse/clickhouse-go/pull/1148](https://github.com/ClickHouse/clickhouse-go/pull/1148) - [@​deankarn](https://github.com/deankarn) made their first contribution in [https://github.com/ClickHouse/clickhouse-go/pull/1144](https://github.com/ClickHouse/clickhouse-go/pull/1144) **Full Changelog**: ClickHouse/clickhouse-go@v2.15.0...v2.16.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
…-telemetry#29809) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go) | require | minor | `v2.15.0` -> `v2.16.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>ClickHouse/clickhouse-go (github.com/ClickHouse/clickhouse-go/v2)</summary> ### [`v2.16.0`](https://github.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2160-2023-12-01----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---) [Compare Source](https://github.com/ClickHouse/clickhouse-go/compare/v2.15.0...v2.16.0) #### What's Changed ##### Enhancements 🎉 - Add sql.Valuer support for all types by [@&open-telemetry#8203;deankarn](https://github.com/deankarn) in [https://github.com/ClickHouse/clickhouse-go/pull/1144](https://github.com/ClickHouse/clickhouse-go/pull/1144) ##### Fixes 🐛 - Fix DateTime64 range to actual supported range per ClickHouse documentation by [@&open-telemetry#8203;phil-schreiber](https://github.com/phil-schreiber) in [https://github.com/ClickHouse/clickhouse-go/pull/1148](https://github.com/ClickHouse/clickhouse-go/pull/1148) #### New Contributors - [@&open-telemetry#8203;phil-schreiber](https://github.com/phil-schreiber) made their first contribution in [https://github.com/ClickHouse/clickhouse-go/pull/1148](https://github.com/ClickHouse/clickhouse-go/pull/1148) - [@&open-telemetry#8203;deankarn](https://github.com/deankarn) made their first contribution in [https://github.com/ClickHouse/clickhouse-go/pull/1144](https://github.com/ClickHouse/clickhouse-go/pull/1144) **Full Changelog**: ClickHouse/clickhouse-go@v2.15.0...v2.16.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Summary
This PR adds
sql.Valuer
support for all types, except experimental type JSON.Resolves #1143 #997
Checklist
Delete items not relevant to your PR: