Skip to content

Commit

Permalink
update for C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Sep 15, 2022
1 parent 1e6d571 commit 7d8e92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions r/src/compute-exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ExecPlanReader : public arrow::RecordBatchReader {
ExecPlanReader(
const std::shared_ptr<arrow::compute::ExecPlan>& plan,
const std::shared_ptr<arrow::Schema>& schema,
arrow::AsyncGenerator<arrow::util::optional<compute::ExecBatch>> sink_gen)
arrow::AsyncGenerator<std::optional<compute::ExecBatch>> sink_gen)
: schema_(schema), plan_(plan), sink_gen_(sink_gen), status_(PLAN_NOT_STARTED) {}

std::string PlanStatus() const {
Expand Down Expand Up @@ -140,7 +140,7 @@ class ExecPlanReader : public arrow::RecordBatchReader {
private:
std::shared_ptr<arrow::Schema> schema_;
std::shared_ptr<arrow::compute::ExecPlan> plan_;
arrow::AsyncGenerator<arrow::util::optional<compute::ExecBatch>> sink_gen_;
arrow::AsyncGenerator<std::optional<compute::ExecBatch>> sink_gen_;
int status_;

arrow::Status StartProducing() {
Expand All @@ -166,7 +166,7 @@ class ExecPlanReader : public arrow::RecordBatchReader {

status_ = PLAN_FINISHED;
plan_.reset();
sink_gen_ = arrow::MakeEmptyGenerator<arrow::util::optional<compute::ExecBatch>>();
sink_gen_ = arrow::MakeEmptyGenerator<std::optional<compute::ExecBatch>>();
}
};

Expand Down

0 comments on commit 7d8e92f

Please sign in to comment.