lyne7-sc commented on code in PR #22727:
URL: https://github.com/apache/datafusion/pull/22727#discussion_r3360132782
##########
datafusion/sqllogictest/test_files/predicates.slt:
##########
@@ -204,12 +204,65 @@ SELECT * FROM test WHERE column1 ~ 'z'
----
Bazzz
+query T
+SELECT * FROM test WHERE column1 ~ '^Bazzz$'
+----
+Bazzz
+
+query T
+SELECT * FROM test WHERE column1 ~ '^(foo|Bazzz)$'
+----
+foo
+Bazzz
+
+statement ok
+CREATE TABLE test_regex_utf8view(s VARCHAR) AS VALUES ('foo'), ('Bazzz');
Review Comment:
I think it's because the config `map_string_types_to_utf8view` defaults to
`true`, so a `VARCHAR` column is planned as `Utf8View` in slt
https://github.com/apache/datafusion/blob/e1d8d463b51e67e777b3ef744e80fa75593b3e5b/datafusion/common/src/config.rs#L292-L295
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]