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
In function persistedNode.Scan, we will have
replaceCommitts := ...
vector.AppendMultiFixed(vecs[i].GetDownstreamVector(), createTS, false, length, mp)
where vecs[i] is from a VectorPool. Note that we can get anything from a vectorpool, esp, we may get a vector of old type let's say, byte. So the vecs[i].data can possibly points to a slice, say, a byte slide of length 0, cap 2.
Now AppendMultiFixed will call extend, to extend the vector to length of TS (size 12 bytes). If then length is 0, we do not need to extend the vector, because the vector length is 0 and we expand it by 0, right?
Well, then vecs[i] is TYPED, and we have code that cast vecs[i].data to a []TS -- now we try to case a pointer to [2]byte to a pointer to *TS -- go will check this as a runtime error.
Expected Behavior
No response
Steps to Reproduce
The fix should be, either,
1. Get rid of the setupCol, or always check ToSlice if v.length is 0.
2. Get rid of vectorPool. Why do we need to pool a vector? If anything, we want to pool vector.data and vector.area.
Activity
Hack around matrixorigin#23295
fengttt commentedon Dec 16, 2025
I think you can repro by loading tpch 1g using debug build.
Hack around matrixorigin#23295
Hack around matrixorigin#23295
Hack around matrixorigin#23295
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.
Reimpl of sum, avg using new agg framework. Min/Max/Any to come.