This is an automated email from the ASF dual-hosted git repository. brandonwilliams pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push: new c0fdfc4 Only assert concatenation is invalid in < 4.0 c0fdfc4 is described below commit c0fdfc4491cc1fcc687539b143df6c566d7e5e0a Author: Manish Ghildiyal <manish.ghildi...@lunatech.be> AuthorDate: Sat Jan 15 10:23:58 2022 +0100 Only assert concatenation is invalid in < 4.0 Patch by Manish Ghildiyal; reviewed by bereng and brandonwilliams for CASSANDRA-17383 --- user_functions_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/user_functions_test.py b/user_functions_test.py index 24b2b1a..dced54f 100644 --- a/user_functions_test.py +++ b/user_functions_test.py @@ -147,7 +147,10 @@ class TestUserFunctions(Tester): session.execute("CREATE OR REPLACE FUNCTION overloaded(v ascii) called on null input RETURNS text LANGUAGE java AS 'return \"f1\";'") # ensure that works with correct specificity - assert_none(session, "SELECT v FROM tab WHERE k = overloaded('foo')") + if self.cluster.version() < LooseVersion('4.1'): + assert_invalid(session, "SELECT v FROM tab WHERE k = overloaded('foo')") + else: + assert_none(session, "SELECT v FROM tab WHERE k = overloaded('foo')") assert_none(session, "SELECT v FROM tab WHERE k = overloaded((text) 'foo')") assert_none(session, "SELECT v FROM tab WHERE k = overloaded((ascii) 'foo')") assert_none(session, "SELECT v FROM tab WHERE k = overloaded((varchar) 'foo')") --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org