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

Fix panic on format nil *fmt.Stringer type value #1200

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Fix panic on format nil *fmt.Stringer type value #1200

merged 1 commit into from
Feb 26, 2024

Conversation

zaneli
Copy link
Contributor

@zaneli zaneli commented Feb 24, 2024

Summary

Currently, if the pointer to the struct that implements fmt.Stringer is nil, the bind method will panic.
This PR fixes that.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
    • Is this what I should do in this PR?
  • [ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@CLAassistant
Copy link

CLAassistant commented Feb 24, 2024

CLA assistant check
All committers have signed the CLA.

@zaneli zaneli marked this pull request as draft February 24, 2024 13:42
@zaneli zaneli marked this pull request as ready for review February 24, 2024 13:50
@zaneli

This comment was marked as outdated.

@zaneli zaneli closed this Feb 24, 2024
@zaneli zaneli deleted the fix/nil-stringer branch February 24, 2024 23:03
@zaneli zaneli restored the fix/nil-stringer branch February 25, 2024 12:38
@zaneli zaneli reopened this Feb 25, 2024
@zaneli zaneli changed the title fix to bind typed nil value fix to format typed nil *fmt.Stringer value Feb 25, 2024
if v := reflect.ValueOf(v); v.Kind() == reflect.Pointer &&
v.IsNil() &&
v.Type().Elem().Implements(reflect.TypeOf((*fmt.Stringer)(nil)).Elem()) {
return "NULL", nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made a similar check using database/sql as a reference.
This implementation is also copied go-sql-driver/mysql.
Should I write a source code comment mentioning the reference source?

},
{
name: "fmt.Stringer implemented struct typed-nil value",
value: (*Test1200NullStr)(nil),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, panic this case.

--- FAIL: Test1200 (0.03s)
    --- FAIL: Test1200/fmt.Stringer_implemented_struct_typed-nil_value (0.00s)
panic: value method github.com/ClickHouse/clickhouse-go/v2/tests/issues.Test1200NullStr.String called using nil *Test1200NullStr pointer [recovered]
	panic: value method github.com/ClickHouse/clickhouse-go/v2/tests/issues.Test1200NullStr.String called using nil *Test1200NullStr pointer

goroutine 188 [running]:
testing.tRunner.func1.2({0x10084d7a0, 0xc0001ae200})
	/Users/zaneli/sdk/go1.21.1/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
	/Users/zaneli/sdk/go1.21.1/src/testing/testing.go:1548 +0x397
panic({0x10084d7a0?, 0xc0001ae200?})
	/Users/zaneli/sdk/go1.21.1/src/runtime/panic.go:914 +0x21f
github.com/ClickHouse/clickhouse-go/v2/tests/issues.(*Test1200NullStr).String(0xc00008a958?)
	<autogenerated>:1 +0x25
github.com/ClickHouse/clickhouse-go/v2.format(0x1010c8680?, 0x60?, {0x100839d60?, 0x0?})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/bind.go:309 +0x62e
github.com/ClickHouse/clickhouse-go/v2.bindPositional(0x0?, {0x1009644b4, 0x32}, {0xc0000d6160, 0x2, 0x0?})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/bind.go:144 +0x2d4
github.com/ClickHouse/clickhouse-go/v2.bind(0x0?, {0x1009644b4, 0x32}, {0xc0000d6160?, 0x2, 0x2})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/bind.go:93 +0x235
github.com/ClickHouse/clickhouse-go/v2.bindQueryOrAppendParameters(0x0?, 0xc00008ad58?, {0x1009644b4?, 0x32?}, 0x0?, {0xc0000d6160?, 0x2?, 0x2?})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/query_parameters.go:59 +0x16e
github.com/ClickHouse/clickhouse-go/v2.(*connect).exec(0xc000512000, {0x100ac6c00, 0x1010c8680}, {0x1009644b4, 0x32}, {0xc0000d6160, 0x2, 0x2})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/conn_exec.go:30 +0x105
github.com/ClickHouse/clickhouse-go/v2.(*clickhouse).Exec(0x5ad?, {0x100ac6c00, 0x1010c8680}, {0x1009644b4, 0x32}, {0xc0000d6160, 0x2, 0x2})
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/clickhouse.go:149 +0x99
github.com/ClickHouse/clickhouse-go/v2/tests/issues.Test1200.func2(0x1010c8680?)
	/Users/zaneli/go/src/github.com/zaneli/clickhouse-go/tests/issues/1200_pr_test.go:61 +0x126
testing.tRunner(0xc000622680, 0xc0003ee4c0)
	/Users/zaneli/sdk/go1.21.1/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 185
	/Users/zaneli/sdk/go1.21.1/src/testing/testing.go:1648 +0x3ad

@jkaflik jkaflik self-requested a review February 26, 2024 08:57
@jkaflik jkaflik changed the title fix to format typed nil *fmt.Stringer value Fix panic on format nil *fmt.Stringer type value Feb 26, 2024
@jkaflik jkaflik merged commit f96b394 into ClickHouse:main Feb 26, 2024
13 checks passed
@zaneli zaneli deleted the fix/nil-stringer branch February 26, 2024 12:45
mx-psi referenced this pull request in open-telemetry/opentelemetry-collector-contrib Mar 12, 2024
….21.1 (#31065)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/ClickHouse/clickhouse-go/v2](https://togithub.com/ClickHouse/clickhouse-go)
| `v2.17.1` -> `v2.21.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!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.21.1`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.1)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.21.0...v2.21.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Fixes 🐛

- Adds the ability to Append a zero valued time.Time by
[@&#8203;KevinJoiner](https://togithub.com/KevinJoiner) in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

#### New Contributors

- [@&#8203;KevinJoiner](https://togithub.com/KevinJoiner) made their
first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.21.0...v2.21.1

###
[`v2.21.0`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.0)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.20.0...v2.21.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Enhancements 🎉

- Stream HTTP response body read for decompression by
[@&#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1213](https://togithub.com/ClickHouse/clickhouse-go/pull/1213)

##### Fixes 🐛

- Fix Date32 extremes values handling by
[@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1218](https://togithub.com/ClickHouse/clickhouse-go/pull/1218)
- Fix column with double quotes PrepareBatch
failed.([#&#8203;1216](https://togithub.com/ClickHouse/clickhouse-go/issues/1216))
by [@&#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1217](https://togithub.com/ClickHouse/clickhouse-go/pull/1217)
- Fix an obscure error in HTTP protocol with LZ4 compression by
[@&#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1230](https://togithub.com/ClickHouse/clickhouse-go/pull/1230)

##### Other Changes 🛠

- Replace deprecated `io/ioutil` functions with equivalents by
[@&#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1211](https://togithub.com/ClickHouse/clickhouse-go/pull/1211)
- Run cloud workflow on main branch only by
[@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1219](https://togithub.com/ClickHouse/clickhouse-go/pull/1219)
- ClickHouse 24.2 by [@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1220](https://togithub.com/ClickHouse/clickhouse-go/pull/1220)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.20.0...v2.21.0

###
[`v2.20.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2200-2024-02-28----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.19.0...v2.20.0)

#### What's Changed

##### Enhancements 🎉

- Support \[n]byte/\[]byte type Scan/Append to FixedString column by
[@&#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1205](https://togithub.com/ClickHouse/clickhouse-go/pull/1205)

##### Other Changes 🛠

- Enable cloud tests by [@&#8203;jkaflik](https://togithub.com/jkaflik)
in
[https://github.com/ClickHouse/clickhouse-go/pull/1202](https://togithub.com/ClickHouse/clickhouse-go/pull/1202)
- Removed LowCardinality(UInt64) tests that caused
allow_suspicious_low_cardinality_types related error by
[@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1206](https://togithub.com/ClickHouse/clickhouse-go/pull/1206)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.19.0...v2.20.0

###
[`v2.19.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2190-2024-02-26----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.18.0...v2.19.0)

#### What's Changed

##### Enhancements 🎉

- handle ctx.Done() in acquire by
[@&#8203;threadedstream](https://togithub.com/threadedstream) in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)

##### Fixes 🐛

- Fix panic on format nil \*fmt.Stringer type value by
[@&#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

##### Other Changes 🛠

- Update Go/ClickHouse versions by
[@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1201](https://togithub.com/ClickHouse/clickhouse-go/pull/1201)

#### New Contributors

- [@&#8203;threadedstream](https://togithub.com/threadedstream) made
their first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)
- [@&#8203;zaneli](https://togithub.com/zaneli) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.18.0...v2.19.0

###
[`v2.18.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2180-2024-02-01----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.17.1...v2.18.0)

#### What's Changed

##### Enhancements 🎉

- Add WithAllocBufferColStrProvider string column allocator for batch
insert performance boost by
[@&#8203;hongker](https://togithub.com/hongker) in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

##### Fixes 🐛

- Fix bind for seconds scale DateTime by
[@&#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1184](https://togithub.com/ClickHouse/clickhouse-go/pull/1184)

##### Other Changes 🛠

- resolves
[#&#8203;1163](https://togithub.com/ClickHouse/clickhouse-go/issues/1163)
debugF function is not respected by
[@&#8203;omurbekjk](https://togithub.com/omurbekjk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)

#### New Contributors

- [@&#8203;omurbekjk](https://togithub.com/omurbekjk) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)
- [@&#8203;hongker](https://togithub.com/hongker) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.17.1...v2.18.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
DougManton referenced this pull request in DougManton/opentelemetry-collector-contrib Mar 13, 2024
….21.1 (open-telemetry#31065)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/ClickHouse/clickhouse-go/v2](https://togithub.com/ClickHouse/clickhouse-go)
| `v2.17.1` -> `v2.21.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!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.21.1`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.1)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.21.0...v2.21.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Fixes 🐛

- Adds the ability to Append a zero valued time.Time by
[@&open-telemetry#8203;KevinJoiner](https://togithub.com/KevinJoiner) in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

#### New Contributors

- [@&open-telemetry#8203;KevinJoiner](https://togithub.com/KevinJoiner) made their
first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.21.0...v2.21.1

###
[`v2.21.0`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.0)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.20.0...v2.21.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Enhancements 🎉

- Stream HTTP response body read for decompression by
[@&open-telemetry#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1213](https://togithub.com/ClickHouse/clickhouse-go/pull/1213)

##### Fixes 🐛

- Fix Date32 extremes values handling by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1218](https://togithub.com/ClickHouse/clickhouse-go/pull/1218)
- Fix column with double quotes PrepareBatch
failed.([#&open-telemetry#8203;1216](https://togithub.com/ClickHouse/clickhouse-go/issues/1216))
by [@&open-telemetry#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1217](https://togithub.com/ClickHouse/clickhouse-go/pull/1217)
- Fix an obscure error in HTTP protocol with LZ4 compression by
[@&open-telemetry#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1230](https://togithub.com/ClickHouse/clickhouse-go/pull/1230)

##### Other Changes 🛠

- Replace deprecated `io/ioutil` functions with equivalents by
[@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1211](https://togithub.com/ClickHouse/clickhouse-go/pull/1211)
- Run cloud workflow on main branch only by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1219](https://togithub.com/ClickHouse/clickhouse-go/pull/1219)
- ClickHouse 24.2 by [@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1220](https://togithub.com/ClickHouse/clickhouse-go/pull/1220)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.20.0...v2.21.0

###
[`v2.20.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2200-2024-02-28----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.19.0...v2.20.0)

#### What's Changed

##### Enhancements 🎉

- Support \[n]byte/\[]byte type Scan/Append to FixedString column by
[@&open-telemetry#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1205](https://togithub.com/ClickHouse/clickhouse-go/pull/1205)

##### Other Changes 🛠

- Enable cloud tests by [@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik)
in
[https://github.com/ClickHouse/clickhouse-go/pull/1202](https://togithub.com/ClickHouse/clickhouse-go/pull/1202)
- Removed LowCardinality(UInt64) tests that caused
allow_suspicious_low_cardinality_types related error by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1206](https://togithub.com/ClickHouse/clickhouse-go/pull/1206)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.19.0...v2.20.0

###
[`v2.19.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2190-2024-02-26----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.18.0...v2.19.0)

#### What's Changed

##### Enhancements 🎉

- handle ctx.Done() in acquire by
[@&open-telemetry#8203;threadedstream](https://togithub.com/threadedstream) in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)

##### Fixes 🐛

- Fix panic on format nil \*fmt.Stringer type value by
[@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

##### Other Changes 🛠

- Update Go/ClickHouse versions by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1201](https://togithub.com/ClickHouse/clickhouse-go/pull/1201)

#### New Contributors

- [@&open-telemetry#8203;threadedstream](https://togithub.com/threadedstream) made
their first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)
- [@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.18.0...v2.19.0

###
[`v2.18.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2180-2024-02-01----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.17.1...v2.18.0)

#### What's Changed

##### Enhancements 🎉

- Add WithAllocBufferColStrProvider string column allocator for batch
insert performance boost by
[@&open-telemetry#8203;hongker](https://togithub.com/hongker) in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

##### Fixes 🐛

- Fix bind for seconds scale DateTime by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1184](https://togithub.com/ClickHouse/clickhouse-go/pull/1184)

##### Other Changes 🛠

- resolves
[#&open-telemetry#8203;1163](https://togithub.com/ClickHouse/clickhouse-go/issues/1163)
debugF function is not respected by
[@&open-telemetry#8203;omurbekjk](https://togithub.com/omurbekjk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)

#### New Contributors

- [@&open-telemetry#8203;omurbekjk](https://togithub.com/omurbekjk) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)
- [@&open-telemetry#8203;hongker](https://togithub.com/hongker) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.17.1...v2.18.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
XinRanZhAWS referenced this pull request in XinRanZhAWS/opentelemetry-collector-contrib Mar 13, 2024
….21.1 (open-telemetry#31065)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/ClickHouse/clickhouse-go/v2](https://togithub.com/ClickHouse/clickhouse-go)
| `v2.17.1` -> `v2.21.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fClickHouse%2fclickhouse-go%2fv2/v2.17.1/v2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!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.21.1`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.1)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.21.0...v2.21.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Fixes 🐛

- Adds the ability to Append a zero valued time.Time by
[@&open-telemetry#8203;KevinJoiner](https://togithub.com/KevinJoiner) in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

#### New Contributors

- [@&open-telemetry#8203;KevinJoiner](https://togithub.com/KevinJoiner) made their
first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1228](https://togithub.com/ClickHouse/clickhouse-go/pull/1228)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.21.0...v2.21.1

###
[`v2.21.0`](https://togithub.com/ClickHouse/clickhouse-go/releases/tag/v2.21.0)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.20.0...v2.21.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Enhancements 🎉

- Stream HTTP response body read for decompression by
[@&open-telemetry#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1213](https://togithub.com/ClickHouse/clickhouse-go/pull/1213)

##### Fixes 🐛

- Fix Date32 extremes values handling by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1218](https://togithub.com/ClickHouse/clickhouse-go/pull/1218)
- Fix column with double quotes PrepareBatch
failed.([#&open-telemetry#8203;1216](https://togithub.com/ClickHouse/clickhouse-go/issues/1216))
by [@&open-telemetry#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1217](https://togithub.com/ClickHouse/clickhouse-go/pull/1217)
- Fix an obscure error in HTTP protocol with LZ4 compression by
[@&open-telemetry#8203;YenchangChan](https://togithub.com/YenchangChan) in
[https://github.com/ClickHouse/clickhouse-go/pull/1230](https://togithub.com/ClickHouse/clickhouse-go/pull/1230)

##### Other Changes 🛠

- Replace deprecated `io/ioutil` functions with equivalents by
[@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1211](https://togithub.com/ClickHouse/clickhouse-go/pull/1211)
- Run cloud workflow on main branch only by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1219](https://togithub.com/ClickHouse/clickhouse-go/pull/1219)
- ClickHouse 24.2 by [@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1220](https://togithub.com/ClickHouse/clickhouse-go/pull/1220)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.20.0...v2.21.0

###
[`v2.20.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2200-2024-02-28----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.19.0...v2.20.0)

#### What's Changed

##### Enhancements 🎉

- Support \[n]byte/\[]byte type Scan/Append to FixedString column by
[@&open-telemetry#8203;rogeryk](https://togithub.com/rogeryk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1205](https://togithub.com/ClickHouse/clickhouse-go/pull/1205)

##### Other Changes 🛠

- Enable cloud tests by [@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik)
in
[https://github.com/ClickHouse/clickhouse-go/pull/1202](https://togithub.com/ClickHouse/clickhouse-go/pull/1202)
- Removed LowCardinality(UInt64) tests that caused
allow_suspicious_low_cardinality_types related error by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1206](https://togithub.com/ClickHouse/clickhouse-go/pull/1206)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.19.0...v2.20.0

###
[`v2.19.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2190-2024-02-26----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.18.0...v2.19.0)

#### What's Changed

##### Enhancements 🎉

- handle ctx.Done() in acquire by
[@&open-telemetry#8203;threadedstream](https://togithub.com/threadedstream) in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)

##### Fixes 🐛

- Fix panic on format nil \*fmt.Stringer type value by
[@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

##### Other Changes 🛠

- Update Go/ClickHouse versions by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1201](https://togithub.com/ClickHouse/clickhouse-go/pull/1201)

#### New Contributors

- [@&open-telemetry#8203;threadedstream](https://togithub.com/threadedstream) made
their first contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1199](https://togithub.com/ClickHouse/clickhouse-go/pull/1199)
- [@&open-telemetry#8203;zaneli](https://togithub.com/zaneli) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1200](https://togithub.com/ClickHouse/clickhouse-go/pull/1200)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.18.0...v2.19.0

###
[`v2.18.0`](https://togithub.com/ClickHouse/clickhouse-go/blob/HEAD/CHANGELOG.md#v2180-2024-02-01----Release-notes-generated-using-configuration-in-githubreleaseyml-at-main---)

[Compare
Source](https://togithub.com/ClickHouse/clickhouse-go/compare/v2.17.1...v2.18.0)

#### What's Changed

##### Enhancements 🎉

- Add WithAllocBufferColStrProvider string column allocator for batch
insert performance boost by
[@&open-telemetry#8203;hongker](https://togithub.com/hongker) in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

##### Fixes 🐛

- Fix bind for seconds scale DateTime by
[@&open-telemetry#8203;jkaflik](https://togithub.com/jkaflik) in
[https://github.com/ClickHouse/clickhouse-go/pull/1184](https://togithub.com/ClickHouse/clickhouse-go/pull/1184)

##### Other Changes 🛠

- resolves
[#&open-telemetry#8203;1163](https://togithub.com/ClickHouse/clickhouse-go/issues/1163)
debugF function is not respected by
[@&open-telemetry#8203;omurbekjk](https://togithub.com/omurbekjk) in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)

#### New Contributors

- [@&open-telemetry#8203;omurbekjk](https://togithub.com/omurbekjk) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1166](https://togithub.com/ClickHouse/clickhouse-go/pull/1166)
- [@&open-telemetry#8203;hongker](https://togithub.com/hongker) made their first
contribution in
[https://github.com/ClickHouse/clickhouse-go/pull/1181](https://togithub.com/ClickHouse/clickhouse-go/pull/1181)

**Full Changelog**:
ClickHouse/clickhouse-go@v2.17.1...v2.18.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants