Skip to content

Commit

Permalink
Address PR review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
  • Loading branch information
margarit-h committed Nov 28, 2022
1 parent b60195c commit 77de5e5
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,9 @@ public void testSqrt() throws IOException {
@Test
public void testCbrt() throws IOException {
JSONObject result =
executeQuery(
String.format(
"source=%s | eval f = cbrt(age) | fields f", TEST_INDEX_BANK));
verifySchema(result, schema("f", null, "double"));
verifyDataRows(result,
rows(3.174802103936399), rows(3.3019272488946267), rows(3.0365889718756627),
rows(3.2075343299958265), rows(3.3019272488946267), rows(3.391211443014167),
rows(3.2396118012774835));

result =
executeQuery(
String.format(
"source=%s | eval f = cbrt(num3) | fields f", TEST_INDEX_CALCS));
executeQuery(
String.format(
"source=%s | eval f = cbrt(num3) | fields f", TEST_INDEX_CALCS));
verifySchema(result, schema("f", null, "double"));
verifyDataRows(result,
closeTo(Math.cbrt(-11.52)), closeTo(Math.cbrt(-9.31)), closeTo(Math.cbrt(-12.17)),
Expand Down

0 comments on commit 77de5e5

Please sign in to comment.