Skip to content

Commit

Permalink
Add more functions to TestHiveExternalWorkersQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasmanova committed Sep 16, 2020
1 parent 2108955 commit faebf2a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public void testFiltersAndProjections()
assertQuery("SELECT * FROM nation WHERE nationkey >= 4");
assertQuery("SELECT nationkey * 10, nationkey % 5, -nationkey, nationkey / 3 FROM nation");
assertQuery("SELECT *, nationkey / 3 FROM nation");

assertQuery("SELECT rand() < 1, random() < 1 FROM nation", "SELECT true, true FROM nation");
assertQuery("SELECT ceil(discount), ceiling(discount), floor(discount), abs(discount) FROM lineitem");
assertQuery("SELECT substr(comment, 1, 10), length(comment) FROM orders");
}

@Test
Expand Down

0 comments on commit faebf2a

Please sign in to comment.