Skip to content

Commit

Permalink
Issues 80: Fix typos in src/exec_state.cpp and src/parquet_impl.cpp
Browse files Browse the repository at this point in the history
Additionally fix clang warning.
  • Loading branch information
za-arthur committed May 29, 2024
1 parent e6d8107 commit b6929dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/exec_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class MultifileExecutionState : public ParquetFdwExecutionState
ExecStoreVirtualTuple(slot);
}

return res;
return res == RS_SUCCESS;
}

void rescan(void)
Expand Down
12 changes: 6 additions & 6 deletions src/parquet_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ row_group_matches_filter(parquet::Statistics *stats,
Datum lower;
int cmpres;
bool satisfies;
std::string min = std::move(stats->EncodeMin());
std::string min = stats->EncodeMin();

lower = bytes_to_postgres_type(min.c_str(), min.length(),
arrow_type);
Expand All @@ -414,7 +414,7 @@ row_group_matches_filter(parquet::Statistics *stats,
Datum upper;
int cmpres;
bool satisfies;
std::string max = std::move(stats->EncodeMax());
std::string max = stats->EncodeMax();

upper = bytes_to_postgres_type(max.c_str(), max.length(),
arrow_type);
Expand All @@ -434,8 +434,8 @@ row_group_matches_filter(parquet::Statistics *stats,
{
Datum lower,
upper;
std::string min = std::move(stats->EncodeMin());
std::string max = std::move(stats->EncodeMax());
std::string min = stats->EncodeMin();
std::string max = stats->EncodeMax();

lower = bytes_to_postgres_type(min.c_str(), min.length(),
arrow_type);
Expand Down Expand Up @@ -1479,7 +1479,7 @@ parquetGetForeignPlan(PlannerInfo * /* root */,
extern "C" void
parquetBeginForeignScan(ForeignScanState *node, int /* eflags */)
{
ParquetFdwExecutionState *festate;
ParquetFdwExecutionState *festate = NULL;
MemoryContextCallback *callback;
MemoryContext reader_cxt;
ForeignScan *plan = (ForeignScan *) node->ss.ps.plan;
Expand Down Expand Up @@ -1792,7 +1792,7 @@ parquetAcquireSampleRowsFunc(Relation relation, int /* elevel */,

delete festate;

return cnt - 1;
return cnt;
}

extern "C" bool
Expand Down

0 comments on commit b6929dc

Please sign in to comment.