Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ba26d6a
added io.Reader to ByteBuffer for streaming deserialization
ayush00git Feb 20, 2026
8ba4dba
added NewByteBufferFromReader and fill method
ayush00git Feb 20, 2026
e4baf32
added condition to check for read stream and ResetByteBuffer method
ayush00git Feb 20, 2026
f751916
added stream deserializer and initialized buffer reader to 0
ayush00git Feb 20, 2026
88ecb2d
added stream test suites
ayush00git Feb 20, 2026
a768ac1
fix ci
ayush00git Feb 20, 2026
4ffe66f
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 23, 2026
1742a5d
fix(docs): updated compiler guide
ayush00git Feb 25, 2026
4887f5b
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 25, 2026
544645b
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 25, 2026
1be86de
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 26, 2026
e205d5d
fix: create a copy of slice while desrlz to prevent overwriting
ayush00git Feb 26, 2026
4fdb8ec
added StreamReader struct and NewStreamReader method which would hand…
ayush00git Feb 26, 2026
1a8c100
added StreamReader struct and NewStreamReader method which would hand…
ayush00git Feb 26, 2026
92c207d
added tests for stream reader
ayush00git Feb 26, 2026
d90c55d
code lint checks
ayush00git Feb 26, 2026
d276644
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 27, 2026
42c3bbb
fix: added correct error boundation
ayush00git Feb 28, 2026
08c5cf1
read now fetch from the stream until p bytes eln
ayush00git Feb 28, 2026
bb04c0f
Merge branch 'main' into feat/go-deserialization
ayush00git Feb 28, 2026
2f9f0bd
Merge branch 'main' into feat/go-deserialization
ayush00git Mar 2, 2026
120ddf2
Merge branch 'main' into feat/go-deserialization
ayush00git Mar 3, 2026
0c6dc2b
trigger ci
ayush00git Mar 3, 2026
fd03acf
added a helper test function for stream dsr
ayush00git Mar 3, 2026
b1cc78c
f.desialize -> testDeserialize to dsr one by one bytebuffer
ayush00git Mar 3, 2026
cc2077e
fixed the fast-path check bug
ayush00git Mar 3, 2026
4e5a6d6
removed unused testUnmarshal
ayush00git Mar 3, 2026
a78197f
moved StreamReader to a new file
ayush00git Mar 3, 2026
91d04f4
refined apis
ayush00git Mar 3, 2026
8935868
updated test suites
ayush00git Mar 3, 2026
e660756
Merge branch 'main' into feat/go-deserialization
ayush00git Mar 4, 2026
d504099
renamed StreamReader api to InputStream and implemented a buffer shri…
ayush00git Mar 4, 2026
53e4f3d
replaced the occurence with new api methods
ayush00git Mar 4, 2026
0300946
added unit test for shrink buffer api
ayush00git Mar 4, 2026
9f92968
fixed indentation
ayush00git Mar 4, 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
18 changes: 9 additions & 9 deletions go/fory/array_primitive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestPrimitiveArraySerializer(t *testing.T) {
assert.NoError(t, err)

var result [3]uint16
err = f.Deserialize(data, &result)
err = testDeserialize(t, f, data, &result)
assert.NoError(t, err)
assert.Equal(t, arr, result)
})
Expand All @@ -48,7 +48,7 @@ func TestPrimitiveArraySerializer(t *testing.T) {
assert.NoError(t, err)

var result [3]uint32
err = f.Deserialize(data, &result)
err = testDeserialize(t, f, data, &result)
assert.NoError(t, err)
assert.Equal(t, arr, result)
})
Expand All @@ -60,7 +60,7 @@ func TestPrimitiveArraySerializer(t *testing.T) {
assert.NoError(t, err)

var result [3]uint64
err = f.Deserialize(data, &result)
err = testDeserialize(t, f, data, &result)
assert.NoError(t, err)
assert.Equal(t, arr, result)
})
Expand All @@ -86,7 +86,7 @@ func TestPrimitiveArraySerializer(t *testing.T) {
assert.NoError(t, err)

var result [3]bfloat16.BFloat16
err = f.Deserialize(data, &result)
err = testDeserialize(t, f, data, &result)
assert.NoError(t, err)
assert.Equal(t, arr, result)
})
Expand All @@ -103,7 +103,7 @@ func TestArraySliceInteroperability(t *testing.T) {

// Deserialize into Slice []int32
var slice []int32
err = f.Deserialize(data, &slice)
err = testDeserialize(t, f, data, &slice)
assert.NoError(t, err)
assert.Equal(t, []int32{1, 2, 3}, slice)
})
Expand All @@ -116,7 +116,7 @@ func TestArraySliceInteroperability(t *testing.T) {

// Deserialize into Array [3]int32
var arr [3]int32
err = f.Deserialize(data, &arr)
err = testDeserialize(t, f, data, &arr)
assert.NoError(t, err)
assert.Equal(t, [3]int32{4, 5, 6}, arr)
})
Expand All @@ -128,7 +128,7 @@ func TestArraySliceInteroperability(t *testing.T) {
assert.NoError(t, err)

var slice []int64 // different type
err = f.Deserialize(data, &slice)
err = testDeserialize(t, f, data, &slice)
// Strict checking means this should error immediately upon reading wrong TypeID
assert.Error(t, err)
})
Expand All @@ -141,7 +141,7 @@ func TestArraySliceInteroperability(t *testing.T) {

// Deserialize into Array [3]int32 - should fail size check
var arr [3]int32
err = f.Deserialize(data, &arr)
err = testDeserialize(t, f, data, &arr)
// Serialized as list with len 2. Array expects 3.
assert.Error(t, err)
assert.Contains(t, err.Error(), "array length")
Expand All @@ -161,7 +161,7 @@ func TestFloat16Array(t *testing.T) {
assert.NoError(t, err)

var result [3]float16.Float16
err = f.Deserialize(data, &result)
err = testDeserialize(t, f, data, &result)
assert.NoError(t, err)
assert.Equal(t, arr, result)
})
Expand Down
Loading
Loading