You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Common
Use pointer receivers:
1. For Array types: to have all functions have the same receiver type
(other functions do have pointer receivers, so updating `String()`
method receiver is natural, see `net.IPNet` as a reference.
2. For `Type` implementations: we do return a pointer from `NewXYZType`
function, so it's only natural to define the receiver as pointer as
well.
### `Inet`
#### `InetBuilder`
1. Now accepts `*net.IPNet` (pointer) in `Append`, `UnsafeAppend` &
`AppendValues`
3. `AppendValues` now accounts for `valid` param
#### `InetArray`
1. `String` method uses `%q` format as mainstream Apache Arrow types
2. Added `Value(i int) *net.IPNet` function
4. `GetOneForMarshal` utilizes `Value` implementation
### `JSON`
#### `JSONBuilder`
1. Marshaling with `json.DisableHTMLEscape()` option per #622
2. `AppendValues` now accounts for `valid` param
3. `UnmarshalJSON` implementation is streamlined with helper
`Unmarshal(dec *json.Decoder) error` function (as mainstream Apache
Arrow types)
#### `JSONArray`
1. `String` method uses `%q` format as mainstream Apache Arrow types
2. Added `Value(i int) any` function that will unmarshal the stored data
& return the concrete type
3. Use `json.UnmarshalNoEscape` per #622
5. `GetOneForMarshal` now doesn't perform unmarshaling and, instead,
returns the stored `json.RawMessage`
### `Mac`
#### `MacBuilder`
1. `AppendValues` now accounts for `valid` param
#### `MacArray`
1. `String` method uses `%q` format as mainstream Apache Arrow types
2. Added `Value(i int) net.HardwareAddr` function
### `UUID`
#### `UUIDBuilder`
1. `AppendValues` now accounts for `valid` param
2. Use `uuid.Must` func instead of panic in code
### `UUIDArray`
1. `String` method uses `%q` format as mainstream Apache Arrow types
2. Added `Value(i int) uuid.UUID` func
3. Use `uuid.Must` func instead of panic in code
0 commit comments