Repository navigation
Conversation
wesm
left a comment
There was a problem hiding this comment.
Very nice, looks good modulo minor c++ nits
There was a problem hiding this comment.
can you include this as `"arrow/util/logging.h" with the other arrow includes? https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
There was a problem hiding this comment.
How about putting this in
https://github.com/apache/arrow/blob/master/cpp/src/arrow/python/config.cc#L25
Init() gets calls when you import pyarrow
There was a problem hiding this comment.
google C++ recommends putting mutable args after input args, and making them pointers, e.g. (..., FooBuilder* sink)
There was a problem hiding this comment.
Yeah, this was following the conventions of AppendObjectStrings. I'll change both.
There was a problem hiding this comment.
int64_t (BytesForBits returns this)
There was a problem hiding this comment.
You could put this in in a little function that also does DCHECK_EQ(Type::FIXED_WIDTH_BINARY, arr->type_enum())
There was a problem hiding this comment.
I was using DCHECK_EQ, but it aborts which doesn't let us show the user what went wrong.
There was a problem hiding this comment.
You can pipe a message into DCHECK -- DCHECK should only be used for "can't fail" errors (made by developers) though, anything else should return a proper error
There was a problem hiding this comment.
Hm this is definitely a user facing error, since we're dealing with user input here.
|
Can you touch the branch to trigger a CI build (now that the Parquet stuff is hopefully fixed)? |
|
Yep. |
|
Green on travis, w00t. |
|
rebasing now |
wesm
left a comment
There was a problem hiding this comment.
+1. thank you for the contribution!
…tics Prevent the function FormatStatValue from adding a trailing space to the formatted statistics of strings and int96. Author: Julius Neuffer <julius.neuffer@blue-yonder.com> Closes apache#461 from jneuff/remove-trailing-space and squashes the following commits: 612e24c [Julius Neuffer] PARQUET-1283: [C++] Remove trailing space for string and int96 statistics Change-Id: I8b1e40fe544b49f731129623b411c21091dbfe87
No description provided.