(s *rel.SqlSelect)
| 10 | ) |
| 11 | |
| 12 | func needsFinalProjection(s *rel.SqlSelect) bool { |
| 13 | if s.Having != nil { |
| 14 | return true |
| 15 | } |
| 16 | // Where? |
| 17 | if len(s.OrderBy) > 0 { |
| 18 | return true |
| 19 | } |
| 20 | if len(s.GroupBy) > 0 { |
| 21 | return true |
| 22 | } |
| 23 | return false |
| 24 | } |
| 25 | |
| 26 | // WalkSelect walk a select statement filling out plan. |
| 27 | func (m *PlannerDefault) WalkSelect(p *Select) error { |