Skip to content

Commit

Permalink
Fix building (apache#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
prutskov authored Apr 13, 2020
1 parent bcacc30 commit 2f08032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cpp/src/arrow/csv/converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "arrow/type_traits.h"
#include "arrow/util/decimal.h"
#include "arrow/util/parsing.h" // IWYU pragma: keep
#include "arrow/util/timestamp_converter.h"
#include "arrow/util/trie.h"
#include "arrow/util/utf8.h"

Expand Down Expand Up @@ -400,7 +401,7 @@ class TimestampConverter : public ConcreteConverter {
builder.UnsafeAppendNull();
return Status::OK();
}
if (!converter(type_, reinterpret_cast<const char*>(data), size, &value)) {
if (!(*converter)(type_, reinterpret_cast<const char*>(data), size, &value)) {
continue;
}
builder.UnsafeAppend(value);
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/csv/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct ARROW_EXPORT ConvertOptions {
/// This option is ignored if `include_columns` is empty.
bool include_missing_columns = false;

std::vector<std::unique_ptr<TimestampConverter>> timestamp_converters;
std::vector<std::shared_ptr<arrow::TimestampConverter>> timestamp_converters;

/// Create conversion options with default values, including conventional
/// values for `null_values`, `true_values` and `false_values`
Expand Down

0 comments on commit 2f08032

Please sign in to comment.