try retain

This commit is contained in:
Todd Gruben 2023-04-06 14:58:47 -05:00
parent af40c3564a
commit 0404aad84b

View file

@ -443,6 +443,7 @@ type arrowCache struct {
func (e *executor) getDataTable(ctx context.Context, fname string) (arrow.Table, memory.Allocator, error) {
cache, ok := e.arrowCache[fname]
if ok {
cache.table.Retain()
return cache.table, e.pool, nil
}
// ignoring the passed in allocatorsince where caching