Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eldenmoon committed Apr 28, 2024
1 parent 17637ad commit 43a28dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,8 @@ public Map<SlotRef, Expr> getPointQueryEqualPredicates() {
}

public boolean isPointQuery() {
return this.pointQueryEqualPredicats != null || preparedStatment.isPointQueryShortCircuit();
return this.pointQueryEqualPredicats != null
|| (preparedStatment != null && preparedStatment.isPointQueryShortCircuit());
}

private void computeTabletInfo() throws UserException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,8 @@ && hasCloudClusterPriv()) {
throw new AnalysisException("Unexpected exception: " + e.getMessage());
}
}
if (preparedStmtReanalyzed && preparedStmtCtx.stmt.getPreparedType() == PrepareStmt.PreparedType.FULL_PREPARED) {
if (preparedStmtReanalyzed
&& preparedStmtCtx.stmt.getPreparedType() == PrepareStmt.PreparedType.FULL_PREPARED) {
prepareStmt.asignValues(execStmt.getArgs());
if (LOG.isDebugEnabled()) {
LOG.debug("update planner and analyzer after prepared statement reanalyzed");
Expand Down

0 comments on commit 43a28dc

Please sign in to comment.