MCPcopy Create free account
hub / github.com/apache/impala / TestNonOkStatus

Method TestNonOkStatus

be/src/exprs/expr-test.cc:735–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733 }
734
735 void TestNonOkStatus(const string& expr) {
736 string stmt = "select " + expr;
737 vector<FieldSchema> result_types;
738 Status status = executor_->Exec(stmt, &result_types);
739 ASSERT_FALSE(status.ok()) << "stmt: " << stmt << "\nunexpected Status::OK.";
740 }
741
742 // "Execute 'expr' and check that the returned error ends with 'error_string'"
743 void TestErrorString(const string& expr, const string& error_string) {

Callers

nothing calls this directly

Calls 2

ExecMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected