Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-6158: [C++/Python] Validate child array types with type fields of StructArray #5488

Conversation

jorisvandenbossche
Copy link
Member

return pyarrow_wrap_array(out)
cdef Array result = pyarrow_wrap_array(out)
result.validate()
return result
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the Array.from_.. did such validation in the end, and some not (like StructArray.from_arrays, which I was fixing here), so updated this now for all from_.. constructors

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to add some constructor microbenchmarks just so we understand the cost involved, but in principle this is okay

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@61637dd). Click here to learn what that means.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5488   +/-   ##
=========================================
  Coverage          ?   89.23%           
=========================================
  Files             ?      768           
  Lines             ?   112453           
  Branches          ?        0           
=========================================
  Hits              ?   100344           
  Misses            ?    12109           
  Partials          ?        0
Impacted Files Coverage Δ
python/pyarrow/tests/test_array.py 93.58% <100%> (ø)
python/pyarrow/array.pxi 79.52% <83.33%> (ø)
cpp/src/arrow/array.cc 92.1% <83.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61637dd...7573781. Read the comment docs.

Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

return pyarrow_wrap_array(out)
cdef Array result = pyarrow_wrap_array(out)
result.validate()
return result
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to add some constructor microbenchmarks just so we understand the cost involved, but in principle this is okay

@wesm wesm closed this in 199d3cf Sep 25, 2019
@jorisvandenbossche jorisvandenbossche deleted the ARROW-6158-struct-array-validation branch September 25, 2019 08:05
@jorisvandenbossche
Copy link
Member Author

Thanks, I can look into the microbenchmarks (in the asv benchmark suite right?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants