@@ -74,9 +74,9 @@ class DictBuilder {
7474 explicit DictBuilder (MemoryPool* pool = nullptr );
7575
7676 // Builder for the keys of the dictionary
77- SequenceBuilder& keys () { return * keys_; }
77+ SequenceBuilder* keys () { return keys_. get () ; }
7878 // Builder for the values of the dictionary
79- SequenceBuilder& vals () { return * vals_; }
79+ SequenceBuilder* vals () { return vals_. get () ; }
8080
8181 // Construct an Arrow StructArray representing the dictionary.
8282 // Contains a field "keys" for the keys and "vals" for the values.
@@ -349,9 +349,9 @@ Status SequenceBuilder::AppendDict(PyObject* context, PyObject* dict,
349349 while (PyDict_Next (dict, &pos, &key, &value)) {
350350 RETURN_NOT_OK (dict_values_->builder ()->Append ());
351351 RETURN_NOT_OK (
352- Append (context, key, & dict_values_->keys (), recursion_depth + 1 , blobs_out));
352+ Append (context, key, dict_values_->keys (), recursion_depth + 1 , blobs_out));
353353 RETURN_NOT_OK (
354- Append (context, value, & dict_values_->vals (), recursion_depth + 1 , blobs_out));
354+ Append (context, value, dict_values_->vals (), recursion_depth + 1 , blobs_out));
355355 }
356356
357357 // This block is used to decrement the reference counts of the results
0 commit comments