You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by al...@apache.org on 2021/10/01 07:09:24 UTC

[ignite] branch sql-calcite updated: IGNITE-15552 Fix FunctionsTest#testRegex failure on java 11 - Fixes #9460.

This is an automated email from the ASF dual-hosted git repository.

alexpl pushed a commit to branch sql-calcite
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/sql-calcite by this push:
     new ee4b8ea  IGNITE-15552 Fix FunctionsTest#testRegex failure on java 11 - Fixes #9460.
ee4b8ea is described below

commit ee4b8eaf8406f1331dcf815c86c44098560dab51
Author: Aleksey Plekhanov <pl...@gmail.com>
AuthorDate: Fri Oct 1 10:08:07 2021 +0300

    IGNITE-15552 Fix FunctionsTest#testRegex failure on java 11 - Fixes #9460.
    
    Signed-off-by: Aleksey Plekhanov <pl...@gmail.com>
---
 .../apache/ignite/internal/processors/query/calcite/FunctionsTest.java  | 2 +-
 modules/calcite/src/test/sql/function/string/regex_search.test          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/FunctionsTest.java b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/FunctionsTest.java
index 7a331bd..b739e57 100644
--- a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/FunctionsTest.java
+++ b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/FunctionsTest.java
@@ -286,7 +286,7 @@ public class FunctionsTest extends GridCommonAbstractTest {
         checkQuery("SELECT null !~* 'ab[cd]'").returns(NULL_RESULT).check();
         checkQuery("SELECT 'abcd' !~* null").returns(NULL_RESULT).check();
         checkQuery("SELECT null !~* null").returns(NULL_RESULT).check();
-        assertThrows("SELECT 'abcd' ~ '\\X'", IgniteSQLException.class, null);
+        assertThrows("SELECT 'abcd' ~ '[a-z'", IgniteSQLException.class, null);
     }
 
     /** */
diff --git a/modules/calcite/src/test/sql/function/string/regex_search.test b/modules/calcite/src/test/sql/function/string/regex_search.test
index c031b92..fa3eb09 100644
--- a/modules/calcite/src/test/sql/function/string/regex_search.test
+++ b/modules/calcite/src/test/sql/function/string/regex_search.test
@@ -73,7 +73,7 @@ true
 
 # postgres says throw error on invalid regex
 statement error
-SELECT '' ~ '\X'
+SELECT '' ~ '[a-z'
 
 statement ok
 CREATE TABLE regex(s VARCHAR, p VARCHAR)