Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoritz committed Aug 15, 2017
1 parent f229d8d commit 30bb960
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/src/arrow/python/dict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Status DictBuilder::Finish(std::shared_ptr<Array> key_tuple_data,
auto keys_field = std::make_shared<Field>("keys", keys->type());
auto vals_field = std::make_shared<Field>("vals", vals->type());
auto type =
std::make_shared<StructType>(std::vector<FieldPtr>({keys_field, vals_field}));
std::make_shared<StructType>(std::vector<std::shared_ptr<Field>>({keys_field, vals_field}));
std::vector<std::shared_ptr<Array>> field_arrays({keys, vals});
DCHECK(keys->length() == vals->length());
out->reset(new StructArray(type, keys->length(), field_arrays));
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/python/sequence.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Status SequenceBuilder::AppendDict(int32_t size) {
std::shared_ptr<Array> list_array; \
ListArray::FromArrays(*offset_array, *DATA, pool_, &list_array); \
auto field = std::make_shared<Field>(NAME, list_array->type()); \
auto type = std::make_shared<StructType>(std::vector<FieldPtr>({field})); \
auto type = std::make_shared<StructType>(std::vector<std::shared_ptr<Field>>({field})); \
types[TAG] = std::make_shared<Field>("", type); \
children[TAG] = std::shared_ptr<StructArray>( \
new StructArray(type, list_array->length(), {list_array})); \
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/python/sequence.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace arrow {
class NullArrayBuilder : public arrow::ArrayBuilder {
public:
explicit NullArrayBuilder(arrow::MemoryPool* pool, const arrow::TypePtr& type)
: arrow::ArrayBuilder(pool, type) {}
: arrow::ArrayBuilder(type, pool) {}
virtual ~NullArrayBuilder(){};
arrow::Status Finish(std::shared_ptr<arrow::Array>* out) override {
return arrow::Status::OK();
Expand Down

0 comments on commit 30bb960

Please sign in to comment.