Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acquamarin committed Dec 18, 2024
1 parent a8596a8 commit 7ea4176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extension/fts/src/function/query_fts_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ static common::offset_t tableFunc(TableFuncInput& data, TableFuncOutput& output)
query = stringFormat("CALL drop_project_graph('PK')");
runQuery(clientContext, query);
}
if (localState->numRowsOutput >= localState->result->getNumTuples()) {
if (localState->numRowsOutput >= localState->result->getTable()->getNumTuples()) {
return 0;
}
auto resultTable = localState->result->getTable();
resultTable->scan(output.vectors, localState->numRowsOutput, 1 /* numRowsToScan */);
localState->numRowsOutput++;
return 1;
return output.dataChunk.state->getSelSize();
}

std::unique_ptr<TableFuncLocalState> initLocalState(
Expand Down
2 changes: 1 addition & 1 deletion src/planner/plan/plan_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void Planner::planGDSCall(const BoundReadingClause& readingClause,
gdsCall->computeFactorizedSchema();
probePlan.setLastOperator(gdsCall);
if (gdsCall->constPtrCast<LogicalGDSCall>()->getInfo().func.name == "QFTS") {
auto op = plan->getLastOperator()->getChild(0)->getChild(0)->getChild(1);
auto op = plan->getLastOperator()->getChild(0);

Check warning on line 149 in src/planner/plan/plan_read.cpp

View check run for this annotation

Codecov / codecov/patch

src/planner/plan/plan_read.cpp#L149

Added line #L149 was not covered by tests
auto prop =
bindData->getNodeInput()->constCast<NodeExpression>().getPropertyExpression(
"df");
Expand Down

0 comments on commit 7ea4176

Please sign in to comment.