Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
549bc80
feat(arreflect): add arrow/arreflect package for Go↔Arrow reflection
zeroshade Apr 7, 2026
429120e
fix(arreflect): address code review findings from roborev #849
zeroshade Apr 7, 2026
12e024f
fix(arreflect): use reflect.Value.Equal for REE run detection on comp…
zeroshade Apr 7, 2026
e2a7e66
fix(arreflect): complete temporal-tag write path and add roundtrip tests
zeroshade Apr 7, 2026
00494ba
fix(arreflect): use value-equality for pointer-typed REE elements
zeroshade Apr 7, 2026
56c19db
fix(arreflect): use time-of-day for Time32/Time64 encoding, fix int32…
zeroshade Apr 7, 2026
ddae670
refactor(arreflect): extract timeOfDayNanos helper, strengthen time t…
zeroshade Apr 7, 2026
b6f76d9
test(arreflect): fix vacuous time32 millisecond precision assertion
zeroshade Apr 7, 2026
3174a11
fix(arreflect): propagate dict/ree/listview tags in struct schema, mi…
zeroshade Apr 7, 2026
d2b2613
fix(arreflect): REE test, listview error on bad type, time64 second c…
zeroshade Apr 7, 2026
45e8575
fix(arreflect): ree struct field error, dead code cleanup, UTC normal…
zeroshade Apr 7, 2026
c6e6292
refactor(arreflect): replace v.Interface().(T) with reflect.TypeAsser…
zeroshade Apr 7, 2026
f4b3c66
refactor(arreflect): rename public API, standardize errors, update docs
zeroshade Apr 7, 2026
3485a4a
refactor(arreflect): eliminate code duplication (-89 lines)
zeroshade Apr 7, 2026
4068ba7
fix(arreflect): TypeAssert ok check, deduplicate error prefixes, API …
zeroshade Apr 7, 2026
4b116ce
refactor(arreflect): eliminate code smells per roborev #868
zeroshade Apr 7, 2026
29a94c4
fix(arreflect): wire sentinel errors and fix list-view error label
zeroshade Apr 7, 2026
bb2882c
feat(arreflect): add GoTypeOf, GetAny, ToAnySlice for runtime type in…
zeroshade Apr 7, 2026
765f03b
feat(arreflect): API polish — renames, options, nil allocator, RecordAt
zeroshade Apr 7, 2026
d7f8fa4
fix(arreflect): sentinel classification, MAP inference, rune safety, …
zeroshade Apr 7, 2026
39d7944
feat(arreflect): API fixes, options expansion, duplication cleanup
zeroshade Apr 7, 2026
86d41a8
refactor(arreflect): address review findings, reduce duplication, add…
zeroshade Apr 14, 2026
079eb28
fix(arreflect): guard test reflect.Value, add list builder default, p…
zeroshade Apr 14, 2026
1b3cdb7
test(arreflect): convert to testify, add godoc examples and struct-ar…
zeroshade Apr 14, 2026
debea62
fix(arreflect): prevent panics in InferGoType and nil []byte inconsis…
zeroshade Apr 14, 2026
37fe93e
fix(arreflect): address review findings from jobs 892-894
zeroshade Apr 14, 2026
bf6d5a3
fix(arreflect): guard WithListView dispatch, deref ptr in empty-slice…
zeroshade Apr 14, 2026
40ad519
fix(arreflect): validate InferGoType field names, remove dead REE bra…
zeroshade Apr 14, 2026
2682e33
fix(arreflect): use rune not byte for identifier check, use buildArra…
zeroshade Apr 14, 2026
7abf9d9
fix(arreflect): correct REE append order, match Dict/REE priority, ad…
zeroshade Apr 14, 2026
8f712e4
fix(arreflect): guard FixedSizeList type mismatch, reject unsupported…
zeroshade Apr 14, 2026
19b6a48
fix(arreflect): correct empty-slice ListView element type, validate D…
zeroshade Apr 14, 2026
3b9d97f
fix(arreflect): remove BOOL from dict value whitelist, add bool dict …
zeroshade Apr 14, 2026
2f2bfd4
fix(arreflect): remove dead REE appendValue case, add int/uint and ta…
zeroshade Apr 14, 2026
dc839f4
fix(arreflect): validate full field name as Go identifier, guard dict…
zeroshade Apr 14, 2026
937e043
fix(arreflect): thread opts through buildRunEndEncodedArray, use chec…
zeroshade Apr 14, 2026
4f62a23
fix(arreflect): remove dead typeOfDuration from buildArray and buildT…
zeroshade Apr 14, 2026
4fbb131
fix(arreflect): clear ListView in REE valOpts, add REE+temporal test
zeroshade Apr 14, 2026
2162e38
fix(arreflect): checked listAppender assertion, multi-ptr deref in li…
zeroshade Apr 14, 2026
38926fb
fix(arreflect): error on non-slice after ptr deref in list builder, a…
zeroshade Apr 14, 2026
ed35ef8
fix(arreflect): place nil-pointer list tests in correct test functions
zeroshade Apr 14, 2026
2dfb040
fix(arreflect): nil FixedSizeList appends null, multi-level ptr deref…
zeroshade Apr 14, 2026
c9cd4ee
test(arreflect): add nil FixedSizeList and pointer dict test coverage
zeroshade Apr 14, 2026
5bf7158
test(arreflect): remove dead var, add dict dedup assertion and multi-…
zeroshade Apr 14, 2026
4f8cc07
test(arreflect): add dict dedup assertion to multi-level pointer test
zeroshade Apr 15, 2026
33ed82d
fix(arreflect): drop dead inferListElemDT return, validate WithTempor…
zeroshade Apr 15, 2026
034a9dd
refactor(arreflect): move package from arrow/arreflect to arrow/array…
zeroshade Apr 15, 2026
a7d7773
test(arreflect): add WithTemporal non-time type test, note timestamp …
zeroshade Apr 15, 2026
ab4e790
fix(arreflect): full multi-level ptr deref in all builder loops, add …
zeroshade Apr 15, 2026
768935b
test(arreflect): strengthen multi-level ptr assertions, add map/fixed…
zeroshade Apr 15, 2026
c4867d7
refactor(arreflect): consolidate duplication, extract helpers, fix de…
zeroshade Apr 15, 2026
790e3d0
fix(arreflect): restore outer-element index in fixed-size list error …
zeroshade Apr 15, 2026
3abfcb1
refactor(arreflect): second-pass consolidation — helpers, iterSlice c…
zeroshade Apr 15, 2026
39ccd63
fix(arreflect): increment idx counter on null path in fixed-size list…
zeroshade Apr 15, 2026
30cad48
refactor(arreflect): third-pass consolidation — eliminate appendPrimi…
zeroshade Apr 15, 2026
2e35ae5
refactor(arreflect): final cleanup — extract buildEmptyTyped, delete …
zeroshade Apr 15, 2026
095a046
refactor(arreflect): remove dead opts tagOpts parameter from appendValue
zeroshade Apr 15, 2026
4bb3fd9
fix(arreflect): address Copilot review findings on PR #771
zeroshade Apr 21, 2026
29f8ebe
test(arreflect): expand coverage of error paths and uncovered branches
zeroshade Apr 21, 2026
49018a5
fix(arreflect): address review findings from job 363
zeroshade Apr 21, 2026
50d1eb4
generalize ParseErr
zeroshade Apr 22, 2026
9ea66db
feat(arreflect): add Large field to tagOpts, parse large tag, add Wit…
zeroshade Apr 22, 2026
a291252
feat(arreflect): add applyLargeOpts and hasLargeableType
zeroshade Apr 22, 2026
7d810f5
feat(arreflect): thread large through inferStructType and applyEncodi…
zeroshade Apr 22, 2026
1c7ef89
feat(arreflect): thread large opts through builder functions
zeroshade Apr 22, 2026
90efaf4
fix(arreflect): silence unused opts param in buildDictionaryArray
zeroshade Apr 22, 2026
6d1be8d
fix(arreflect): thread opts into buildFixedSizeListArray and document…
zeroshade Apr 22, 2026
615de8e
feat(arreflect): validate large option at entrypoints
zeroshade Apr 22, 2026
11b3eff
docs(arreflect): add WithLarge and large struct tag examples
zeroshade Apr 22, 2026
6674bb9
test(arreflect): add WithLarge round-trip tests
zeroshade Apr 22, 2026
9d69407
fix(arreflect): produce LARGE_LIST_VIEW in buildEmptyTyped when Large…
zeroshade Apr 22, 2026
266fb4c
test(arreflect): add StringView/BinaryView builder and unknown-tag pu…
zeroshade Apr 22, 2026
62df451
feat(arreflect): rename ListView→View in tagOpts, token, and WithList…
zeroshade Apr 22, 2026
e2a7f28
feat(arreflect): add applyViewOpts and hasViewableType
zeroshade Apr 22, 2026
2ca6425
feat(arreflect): thread view through inferStructType, applyEncodingOp…
zeroshade Apr 22, 2026
cdb5172
fix(arreflect): remove stale large_listview_empty duplicate, fold ass…
zeroshade Apr 22, 2026
e44aa8f
feat(arreflect): thread view opts through builder functions
zeroshade Apr 22, 2026
b721749
fix(arreflect): LARGE_STRING/BINARY→STRING_VIEW/BINARY_VIEW in applyV…
zeroshade Apr 22, 2026
96dee20
feat(arreflect): WithView round-trip tests, fix WithListView→WithView…
zeroshade Apr 22, 2026
e573f55
fix(arreflect): fix truncated doc comment; rename stale WithListView …
zeroshade Apr 22, 2026
d976f08
fix(arreflect): hasViewableType accepts LARGE_STRING/BINARY; add larg…
zeroshade Apr 22, 2026
c8ba88e
fix(arreflect): hasViewableType accepts all view/large-list/view-type…
zeroshade Apr 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions arrow/array/arreflect/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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 arreflect provides utilities for converting between
// Apache Arrow arrays and Go structs using reflection.
//
// The primary entry points are the generic functions [At], [ToSlice],
// [FromSlice], [RecordToSlice], and [RecordFromSlice], which convert
Comment thread
amoeba marked this conversation as resolved.
// between Arrow arrays/records and Go slices of structs.
//
// Schema inference is available via [InferSchema] and [InferType].
//
// Arrow struct tags control field mapping:
//
// type MyRow struct {
// Name string `arrow:"name"`
// Score float64 `arrow:"score"`
// Skip string `arrow:"-"`
// Enc string `arrow:"enc,dict"`
// T32 time.Time `arrow:"t32,time32"`
// }
//
// Temporal type overrides for time.Time fields:
//
// arrow:"field,date32" — use Date32 instead of Timestamp
// arrow:"field,date64" — use Date64 instead of Timestamp
// arrow:"field,time32" — use Time32(ms) instead of Timestamp
// arrow:"field,time64" — use Time64(ns) instead of Timestamp
//
// Additional tag options:
//
// arrow:"field,view" — use STRING_VIEW/BINARY_VIEW for string/bytes fields, or LIST_VIEW for slice fields
// arrow:"field,ree" — run-end encoding at top-level only (struct fields not supported)
// arrow:"field,decimal(precision,scale)" — override decimal precision and scale (e.g., arrow:",decimal(18,2)")
package arreflect
Loading