You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by dl...@apache.org on 2020/07/27 21:47:07 UTC
[asterixdb] branch master updated: [ASTERIXDB-2762] Add emoji test
case for regex
This is an automated email from the ASF dual-hosted git repository.
dlych pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new 963b52e [ASTERIXDB-2762] Add emoji test case for regex
963b52e is described below
commit 963b52e1d511d70141134154e08b285cdf6e0ac2
Author: Rui Guo <ru...@uci.edu>
AuthorDate: Mon Jul 27 06:11:27 2020 -0700
[ASTERIXDB-2762] Add emoji test case for regex
To test if the regex functions support multi-code-point characters such
as emoji.
Change-Id: I63a8feb6218624729c3612009307342c1208914e
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7363
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Dmitry Lychagin <dm...@couchbase.com>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
---
.../regexp_contains/regexp_contains/regexp_contains.3.query.sqlpp | 3 ++-
.../string/regexp_contains/regexp_contains/regexp_contains.3.adm | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/regexp_contains/regexp_contains/regexp_contains.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/regexp_contains/regexp_contains/regexp_contains.3.query.sqlpp
index da6968a..df96edc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/regexp_contains/regexp_contains/regexp_contains.3.query.sqlpp
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/regexp_contains/regexp_contains/regexp_contains.3.query.sqlpp
@@ -34,6 +34,7 @@ from [
REGEXP_CONTAINS('FFFFFFFF','[\\p{XDigit}]'),
REGEXP_CONTAINS('abcdefgh','[\\p{javaLowerCase}]'),
REGEXP_CONTAINS('ABCDEF','[\\p{javaLowerCase}]'),
- REGEXP_CONTAINS(`codepoint-to-string`([163]),'[\\p{Sc}]')
+ REGEXP_CONTAINS(`codepoint-to-string`([163]),'[\\p{Sc}]'),
+ REGEXP_CONTAINS('๐ฉโ๐ฉโ๐งโ๐ฆ','๐ฉโ๐ฉโ๐งโ๐ฆ')
] as a
;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/string/regexp_contains/regexp_contains/regexp_contains.3.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/string/regexp_contains/regexp_contains/regexp_contains.3.adm
index 3215658..5992661 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results/string/regexp_contains/regexp_contains/regexp_contains.3.adm
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/string/regexp_contains/regexp_contains/regexp_contains.3.adm
@@ -12,4 +12,5 @@ true
true
true
false
+true
true
\ No newline at end of file