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
The signature of MapType constructor is func MapOf(key, item DataType) *MapType. The field MapType.value is private and the pointer returned by MapType.ValueType doesn't give access to the fields of the underlying StructType.
I propose to add an additional constructor to specificy these metadata with the following signature:
@ zeroshade - issue #34186
The signature of MapType constructor is func MapOf(key, item DataType) *MapType. The field MapType.value is private and the pointer returned by MapType.ValueType doesn't give access to the fields of the underlying StructType.
I propose to add an additional constructor to specificy these metadata with the following signature:
```go
func MapOfWithMetadata(
keyDT DataType,
keyMetadata Metadata,
valueDT DataType,
valueMetadata Metadata,
) *MapType
```
* Closes: #34186
Authored-by: querel <l.querel@f5.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…4207)
@ zeroshade - issue apache#34186
The signature of MapType constructor is func MapOf(key, item DataType) *MapType. The field MapType.value is private and the pointer returned by MapType.ValueType doesn't give access to the fields of the underlying StructType.
I propose to add an additional constructor to specificy these metadata with the following signature:
```go
func MapOfWithMetadata(
keyDT DataType,
keyMetadata Metadata,
valueDT DataType,
valueMetadata Metadata,
) *MapType
```
* Closes: apache#34186
Authored-by: querel <l.querel@f5.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
fatemehp
pushed a commit
to fatemehp/arrow
that referenced
this issue
Feb 24, 2023
…4207)
@ zeroshade - issue apache#34186
The signature of MapType constructor is func MapOf(key, item DataType) *MapType. The field MapType.value is private and the pointer returned by MapType.ValueType doesn't give access to the fields of the underlying StructType.
I propose to add an additional constructor to specificy these metadata with the following signature:
```go
func MapOfWithMetadata(
keyDT DataType,
keyMetadata Metadata,
valueDT DataType,
valueMetadata Metadata,
) *MapType
```
* Closes: apache#34186
Authored-by: querel <l.querel@f5.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Describe the enhancement requested
The signature of
MapType
constructor isfunc MapOf(key, item DataType) *MapType
. The fieldMapType.value
is private and the pointer returned byMapType.ValueType
doesn't give access to the fields of the underlyingStructType
.I propose to add an additional constructor to specificy these metadata with the following signature:
Component(s)
Go
The text was updated successfully, but these errors were encountered: