Skip to content

Commit

Permalink
Update testQueryExceptions to test correct QueryException code
Browse files Browse the repository at this point in the history
  • Loading branch information
real-mj-song committed Jan 24, 2025
1 parent 0114c7a commit 89de614
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,10 @@ public void testQueryExceptions()
? QueryException.QUERY_PLANNING_ERROR_CODE : QueryException.QUERY_EXECUTION_ERROR_CODE);

testQueryException("SELECT COUNT(*) FROM mytable where ArrTime = 'potato'",
QueryException.QUERY_EXECUTION_ERROR_CODE);
QueryException.QUERY_VALIDATION_ERROR_CODE);

testQueryException("SELECT MAX(CarrierDelay) FROM mytable where ArrTime > 5",
QueryException.QUERY_VALIDATION_ERROR_CODE);
}

private void testQueryException(String query, int errorCode)
Expand Down

0 comments on commit 89de614

Please sign in to comment.