| 1708 | std::vector<VectorPtr>* complexConstants) const { |
| 1709 | if (!inputs_.empty()) { |
| 1710 | stream << "("; |
| 1711 | for (auto i = 0; i < inputs_.size(); ++i) { |
| 1712 | if (i > 0) { |
| 1713 | stream << ", "; |
| 1714 | } |
| 1715 | stream << inputs_[i]->toSql(complexConstants); |
| 1716 | } |
| 1717 | stream << ")"; |
| 1718 | } else if (vectorFunction_ != nullptr) { |
| 1719 | // Function with no inputs. |
| 1720 | stream << "()"; |
| 1721 | } |
| 1722 | } |
| 1723 | |
| 1724 | bool Expr::isConstant() const { |