Skip to content

Commit

Permalink
Uncomment the shared tests in string_query.slt.part and removed tests…
Browse files Browse the repository at this point in the history
… copies everywhere else
  • Loading branch information
blaginin committed Oct 1, 2024
1 parent 8871513 commit 849b985
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 118 deletions.
30 changes: 0 additions & 30 deletions datafusion/sqllogictest/test_files/string/dictionary_utf8.slt
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,6 @@ Xiangpeng datafusion数据融合 false true false true
Raphael datafusionДатаФусион false false false false
NULL NULL NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query BBBB
SELECT
REGEXP_LIKE(ascii_1, 'an'),
REGEXP_LIKE(unicode_1, 'таФ'),
REGEXP_LIKE(ascii_1, NULL),
REGEXP_LIKE(unicode_1, NULL)
FROM test_basic_operator;
----
false false NULL NULL
true false NULL NULL
false true NULL NULL
NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query ????
SELECT
REGEXP_MATCH(ascii_1, 'an'),
REGEXP_MATCH(unicode_1, 'таФ'),
REGEXP_MATCH(ascii_1, NULL),
REGEXP_MATCH(unicode_1, NULL)
FROM test_basic_operator;
----
NULL NULL NULL NULL
[an] NULL NULL NULL
NULL [таФ] NULL NULL
NULL NULL NULL NULL

#
# common test for string-like functions and operators
#
Expand Down
30 changes: 0 additions & 30 deletions datafusion/sqllogictest/test_files/string/string.slt
Original file line number Diff line number Diff line change
Expand Up @@ -63,36 +63,6 @@ Xiangpeng datafusion数据融合 false true false true
Raphael datafusionДатаФусион false false false false
NULL NULL NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query BBBB
SELECT
REGEXP_LIKE(ascii_1, 'an'),
REGEXP_LIKE(unicode_1, 'таФ'),
REGEXP_LIKE(ascii_1, NULL),
REGEXP_LIKE(unicode_1, NULL)
FROM test_basic_operator;
----
false false NULL NULL
true false NULL NULL
false true NULL NULL
NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query ????
SELECT
REGEXP_MATCH(ascii_1, 'an'),
REGEXP_MATCH(unicode_1, 'таФ'),
REGEXP_MATCH(ascii_1, NULL),
REGEXP_MATCH(unicode_1, NULL)
FROM test_basic_operator;
----
NULL NULL NULL NULL
[an] NULL NULL NULL
NULL [таФ] NULL NULL
NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12670
query IIIIII
Expand Down
52 changes: 24 additions & 28 deletions datafusion/sqllogictest/test_files/string/string_query.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -856,39 +856,35 @@ NULL NULL
# Test REGEXP_LIKE
# --------------------------------------

# TODO: LargeString does not support REGEXP_LIKE. Enable this after fixing the issue
# see issue: https://github.com/apache/datafusion/issues/12664
#query BBBB
#SELECT
# REGEXP_LIKE(ascii_1, 'an'),
# REGEXP_LIKE(unicode_1, 'таФ'),
# REGEXP_LIKE(ascii_1, NULL),
# REGEXP_LIKE(unicode_1, NULL)
#FROM test_basic_operator;
#----
#false false NULL NULL
#true false NULL NULL
#false true NULL NULL
#NULL NULL NULL NULL
query BBBB
SELECT
REGEXP_LIKE(ascii_1, 'an'),
REGEXP_LIKE(unicode_1, 'таФ'),
REGEXP_LIKE(ascii_1, NULL),
REGEXP_LIKE(unicode_1, NULL)
FROM test_basic_operator;
----
false false NULL NULL
true false NULL NULL
false true NULL NULL
NULL NULL NULL NULL

# --------------------------------------
# Test REGEXP_MATCH
# --------------------------------------

# TODO: LargeString does not support REGEXP_MATCH. Enable this after fixing the issue
# see issue: https://github.com/apache/datafusion/issues/12664
#query ????
#SELECT
# REGEXP_MATCH(ascii_1, 'an'),
# REGEXP_MATCH(unicode_1, 'таФ'),
# REGEXP_MATCH(ascii_1, NULL),
# REGEXP_MATCH(unicode_1, NULL)
#FROM test_basic_operator;
#----
#NULL NULL NULL NULL
#[an] NULL NULL NULL
#NULL [таФ] NULL NULL
#NULL NULL NULL NULL
query ????
SELECT
REGEXP_MATCH(ascii_1, 'an'),
REGEXP_MATCH(unicode_1, 'таФ'),
REGEXP_MATCH(ascii_1, NULL),
REGEXP_MATCH(unicode_1, NULL)
FROM test_basic_operator;
----
NULL NULL NULL NULL
[an] NULL NULL NULL
NULL [таФ] NULL NULL
NULL NULL NULL NULL

# --------------------------------------
# Test REPEAT
Expand Down
30 changes: 0 additions & 30 deletions datafusion/sqllogictest/test_files/string/string_view.slt
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,6 @@ false false
false true
NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query BBBB
SELECT
REGEXP_LIKE(ascii_1, 'an'),
REGEXP_LIKE(unicode_1, 'таФ'),
REGEXP_LIKE(ascii_1, NULL),
REGEXP_LIKE(unicode_1, NULL)
FROM test_basic_operator;
----
false false NULL NULL
true false NULL NULL
false true NULL NULL
NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12664
query ????
SELECT
REGEXP_MATCH(ascii_1, 'an'),
REGEXP_MATCH(unicode_1, 'таФ'),
REGEXP_MATCH(ascii_1, NULL),
REGEXP_MATCH(unicode_1, NULL)
FROM test_basic_operator;
----
NULL NULL NULL NULL
[an] NULL NULL NULL
NULL [таФ] NULL NULL
NULL NULL NULL NULL

# TODO: move it back to `string_query.slt.part` after fixing the issue
# see detail: https://github.com/apache/datafusion/issues/12670
query IIIIII
Expand Down

0 comments on commit 849b985

Please sign in to comment.