-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-6152: [C++][Parquet] Add parquet::ColumnWriter::WriteArrow method, refactor #5036
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
Conversation
hatemhelal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me.
cpp/src/parquet/properties.h
Outdated
| struct ArrowWriteContext { | ||
| ArrowWriteContext(MemoryPool* memory_pool, ArrowWriterProperties* properties) | ||
| : memory_pool(memory_pool), properties(properties) { | ||
| this->data_buffer = AllocateBuffer(memory_pool); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't tell without compiling but I wondered if this could be done in the member initializer list:
ArrowWriteContext(MemoryPool* memory_pool, ArrowWriterProperties* properties)
: memory_pool(memory_pool), properties(properties),
data_buffer(AllocateBuffer(memory_pool)),
def_levels_buffer(AllocateBuffer(memory_pool)) { }
This might fall in the category of a micro (or even nano) optimization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make this change
|
@romainfrancois @nealrichardson I've noted that when I run |
|
@wesm can you provide a traceback/console output of what the failure looks like/where it happens? |
|
|
And of course So outside of the context of |
|
+1, will merge this PR once Travis CI runs... |
|
One thing you can check out is what is in |
|
Ugh |
|
IMHO this is a bug in R. If you have $LD_LIBRARY_PATH set it should respect that |
|
OIC, it puts its path before the one you provide. That's odd. If you reverse the order of the paths in that next to last line, does it work as expected? |
|
This works fine I'll do that as a workaround. We should document it for developers |
|
I guess I can kind of understand the point of view of wanting to isolate R from being contaminated by the user's environment, including modifications of LD_LIBRARY_PATH. Since if you build a package when LD_LIBRARY_PATH set and then unset it, that package could be broken |
Codecov Report
@@ Coverage Diff @@
## master #5036 +/- ##
==========================================
+ Coverage 87.57% 89.17% +1.59%
==========================================
Files 1008 727 -281
Lines 143814 102958 -40856
Branches 1418 0 -1418
==========================================
- Hits 125952 91814 -34138
+ Misses 17500 11144 -6356
+ Partials 362 0 -362
Continue to review full report at Codecov.
|
|
If it's a bug, it's been around a while. I traced it back to a commit from the end of the Clinton presidency: wch/r-source@b4f9299 |
Functionally the library is unchanged