| 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) { |