nssalian commented on code in PR #1206:
URL: https://github.com/apache/arrow-go/pull/1206#discussion_r3834157255


##########
arrow/extensions/variant_get.go:
##########
@@ -0,0 +1,453 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package extensions
+
+import (
+       "fmt"
+
+       "github.com/apache/arrow-go/v18/arrow"
+       "github.com/apache/arrow-go/v18/arrow/array"
+       "github.com/apache/arrow-go/v18/arrow/bitutil"
+       "github.com/apache/arrow-go/v18/arrow/memory"
+       "github.com/apache/arrow-go/v18/parquet/variant"
+)
+
+// VariantPathElement is a single step of a variant path: either an object 
field
+// name or an array index.
+type VariantPathElement struct {
+       name    string
+       index   int
+       isIndex bool
+}
+
+// VariantPathField returns a path element selecting the named object field.
+func VariantPathField(name string) VariantPathElement {
+       return VariantPathElement{name: name}
+}
+
+// VariantPathIndex returns a path element selecting the array element at 
index.
+func VariantPathIndex(index int) VariantPathElement {
+       return VariantPathElement{index: index, isIndex: true}
+}
+
+// VariantPath is an ordered list of path elements to extract from a variant 
value.
+type VariantPath []VariantPathElement
+
+// GetOptions controls VariantGet.
+type GetOptions struct {

Review Comment:
   Renamed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to