Method: Impala::Protocol::TCaseExpr#validate

Defined in:
lib/impala/protocol/exprs_types.rb

#validateObject

Raises:

  • (::Thrift::ProtocolException)


105
106
107
108
# File 'lib/impala/protocol/exprs_types.rb', line 105

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field has_case_expr is unset!') if @has_case_expr.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field has_else_expr is unset!') if @has_else_expr.nil?
end