@Override public void validate() throws Exception { super.validate(); if ((m_right != null) || (m_left != null)) throw new Exception("ERROR: A value expression has child expressions for '" + this + "'"); // Column Index if (m_columnIndex < 0) { throw new Exception("ERROR: Invalid column index '" + m_columnIndex + "' for '" + this + "'"); } }
@Override public void validate() throws Exception { super.validate(); // Make sure our value is not null if (m_value == null && !m_isNull) { throw new Exception("ERROR: The constant value for '" + this + "' is inconsistently null"); // Make sure the value type is something we support here } else if (m_valueType == VoltType.NULL || m_valueType == VoltType.VOLTTABLE) { throw new Exception( "ERROR: Invalid constant value type '" + m_valueType + "' for '" + this + "'"); } }