Repository navigation
Conversation
|
Looks like the integration tests are failing. Looking into it now. |
wesm
left a comment
There was a problem hiding this comment.
Aside from the nitpicky points about copying / ownership in the schema, this looks good.
There was a problem hiding this comment.
NB. auto here will invoke the string copy constructor. You have to use const auto&
There was a problem hiding this comment.
Changed to const auto&
There was a problem hiding this comment.
per below, this calls the copy constructor. One way to prevent this is to make KeyValueMetadata non-copyable. If you did that, you would need to pass around something like std::unique_ptr<const KeyValueMetadata>. Not sure this is a big deal right now
There was a problem hiding this comment.
I changed this to use const auto&
There was a problem hiding this comment.
this suggests we might want to make the API
Schema(..., std::unique_ptr<KeyValueMetadata> custom_metadata) and
Schema(..., std::unique_ptr<const KeyValueMetadata> custom_metadata) and
with the storage in this class as std::unique_ptr<const KeyValueMetadata>. I think you can move std::unique_ptr<T> into std::unique_ptr<const T>
We could further make KeyValueMetadata non-copyable. Still custom_metadata() returns const KeyValueMetadata&. We could do this in a follow up patch
There was a problem hiding this comment.
Hm, this seems like a lot of additional complexity relative to what the purpose of this class is. What do we get from using unique_ptr?
There was a problem hiding this comment.
Could you make this one and the one above int64_t?
There was a problem hiding this comment.
which clang-format version did this?
There was a problem hiding this comment.
I upgraded to 4.0 recently. I'll look into keeping my older version or making sure that I run the 3.9 fixes if possible.
…ribute in IPC setting
|
@wesm is this good to merge? |
|
@julienledem note that this makes a minor change in the Flatbuffers to use |
…ribute in IPC setting Author: Phillip Cloud <cpcloud@gmail.com> Closes apache#588 from cpcloud/ARROW-483 and squashes the following commits: f671ba4 [Phillip Cloud] ARROW-483: [C++/Python] Provide access to "custom_metadata" Field attribute in IPC setting
…e_rc.sh` (apache#589) Fixes apacheGH-588. `release.yml` takes at least 30min now. So 60s wait interval is too short. We can use longer interval to avoid needless API requests.
No description provided.