Skip to content

Commit

Permalink
add unit test to cover use-cases of not operator on addition and mult…
Browse files Browse the repository at this point in the history
…iplication operations

Signed-off-by: Gal Salomon <[email protected]>
  • Loading branch information
galsalomon66 committed Jun 23, 2024
1 parent 9af3e6a commit 27feb71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/s3select_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3073,6 +3073,12 @@ TEST(TestS3selectFunctions, csv_chunk_processing)
ASSERT_EQ(result_aggr,input_object);
}

TEST(TestS3selectFunctions, not_on_addition_multiplication)
{
test_single_column_single_row("select not (1 + '2') from s3object;","#failure#","illegal binary operation with string");
test_single_column_single_row("select not (167 * '8882') from s3object;","#failure#","illegal binary operation with string");
}

// JSON tests

TEST(TestS3selectFunctions, json_queries)
Expand Down

0 comments on commit 27feb71

Please sign in to comment.