Date: Tue, 1 Jul 2025 02:44:25 -0500
Subject: [PATCH 5/6] fix: Validate and normalize inet test values (#2205)
#### Summary
The inet type, uses the `net.ParseCIDR` function which when returning the network, actually drop some of the details of the CIDR string that is passed in...
```
It returns the IP address and the network implied by the IP and prefix length. For example, ParseCIDR("192.0.2.1/24") returns the IP address 192.0.2.1 and the network 192.0.2.0/24.
```
This fix ensures that all inet values will be unchanged if they go through a read --> write --> read (like we do in the filetypes tests)
This issue was discovered in the filetypes tests where a value was written to a parquet file then read back into an arrow record where the inet builder normalized the data and when compared to the original record a difference was detected
---
schema/testdata.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/schema/testdata.go b/schema/testdata.go
index c1e3973592..11a4087970 100644
--- a/schema/testdata.go
+++ b/schema/testdata.go
@@ -5,6 +5,7 @@ import (
"encoding/base64"
"fmt"
"math/rand"
+ "net"
"strconv"
"strings"
"time"
@@ -316,9 +317,11 @@ func (tg TestDataGenerator) getExampleJSON(colName string, dataType arrow.DataTy
// Generate a CIDR prefix length between 8 and 30
cidr := 8 + rnd.Intn(23)
+ input := fmt.Sprintf(`%d.%d.%d.%d/%d`, ip[0], ip[1], ip[2], ip[3], cidr)
+ _, data, _ := net.ParseCIDR(input)
// Format as an IP address with CIDR notation
- return fmt.Sprintf(`"%d.%d.%d.%d/%d"`, ip[0], ip[1], ip[2], ip[3], cidr)
+ return fmt.Sprintf(`"%s"`, data.String())
}
if arrow.TypeEqual(dataType, types.ExtensionTypes.MAC) {
mac := make([]byte, 6)
From 7e16c4b585d7685a283b0cca059067bec6fffae4 Mon Sep 17 00:00:00 2001
From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com>
Date: Tue, 1 Jul 2025 08:58:00 +0100
Subject: [PATCH 6/6] chore(main): Release v4.86.1 (#2208)
:robot: I have created a release *beep* *boop*
---
## [4.86.1](https://github.com/cloudquery/plugin-sdk/compare/v4.86.0...v4.86.1) (2025-07-01)
### Bug Fixes
* **deps:** Update dependency go to v1.24.4 ([#2209](https://github.com/cloudquery/plugin-sdk/issues/2209)) ([6b91b19](https://github.com/cloudquery/plugin-sdk/commit/6b91b194f8a9280c026670332e40225311f535f2))
* **deps:** Update golang.org/x/exp digest to b7579e2 ([#2207](https://github.com/cloudquery/plugin-sdk/issues/2207)) ([5970950](https://github.com/cloudquery/plugin-sdk/commit/5970950cd733d7031cfa1449eec91b8e51ad45ad))
* Validate and normalize inet test values ([#2205](https://github.com/cloudquery/plugin-sdk/issues/2205)) ([c9f45a2](https://github.com/cloudquery/plugin-sdk/commit/c9f45a24ead0c9fa22f0530daeef5ad40d57cd56))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 28ebbc3ab2..92b3782fff 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "4.86.0"
+ ".": "4.86.1"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63f9c3c1e4..c1de7a2d62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [4.86.1](https://github.com/cloudquery/plugin-sdk/compare/v4.86.0...v4.86.1) (2025-07-01)
+
+
+### Bug Fixes
+
+* **deps:** Update dependency go to v1.24.4 ([#2209](https://github.com/cloudquery/plugin-sdk/issues/2209)) ([6b91b19](https://github.com/cloudquery/plugin-sdk/commit/6b91b194f8a9280c026670332e40225311f535f2))
+* **deps:** Update golang.org/x/exp digest to b7579e2 ([#2207](https://github.com/cloudquery/plugin-sdk/issues/2207)) ([5970950](https://github.com/cloudquery/plugin-sdk/commit/5970950cd733d7031cfa1449eec91b8e51ad45ad))
+* Validate and normalize inet test values ([#2205](https://github.com/cloudquery/plugin-sdk/issues/2205)) ([c9f45a2](https://github.com/cloudquery/plugin-sdk/commit/c9f45a24ead0c9fa22f0530daeef5ad40d57cd56))
+
## [4.86.0](https://github.com/cloudquery/plugin-sdk/compare/v4.85.0...v4.86.0) (2025-06-30)
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy