Skip to content

Commit

Permalink
unnecessary?
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Oct 1, 2024
1 parent 5fbe0d2 commit 693dfae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,6 @@ func GetDeferredProjections(iter sql.RowIter) []sql.Expression {
case *rowexec.ExprCloserIter:
return GetDeferredProjections(i.GetIter())
case *plan.TrackedRowIter:
// TODO: absolutely no idea why i.GetNode() is nil sometimes and why that means the deferred projections
// don't work but that is how it is
if i.GetNode() == nil {
return nil
}
if commitIter, isCommitIter := i.GetIter().(*rowexec.TransactionCommittingIter); isCommitIter {
if projIter, isProjIter := commitIter.GetIter().(*rowexec.ProjectIter); isProjIter {
if projIter.CanDefer() {
Expand Down

0 comments on commit 693dfae

Please sign in to comment.