Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Utf8View to numeric coercion #14377

Merged
merged 6 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests to stringview
alamb committed Jan 30, 2025
commit d3efad46b2a1a3fc3b3be10a2882ac862439e93f
12 changes: 12 additions & 0 deletions datafusion/sqllogictest/test_files/string/large_string.slt
Original file line number Diff line number Diff line change
@@ -34,6 +34,15 @@ statement ok
create table test_substr as
select arrow_cast(col1, 'LargeUtf8') as c1 from test_substr_base;

statement ok
create table test_datetime as
select
arrow_cast(column1, 'LargeUtf8') as ts,
arrow_cast(column2, 'LargeUtf8') as d,
arrow_cast(column3, 'LargeUtf8') as t
from test_datetime_base;


# select
query TTTT
SELECT ascii_1, ascii_2, unicode_1, unicode_2 FROM test_basic_operator
@@ -64,3 +73,6 @@ drop table test_basic_operator;

statement ok
drop table test_substr_base;

statement ok
drop table test_datetime_base;
11 changes: 11 additions & 0 deletions datafusion/sqllogictest/test_files/string/string_view.slt
Original file line number Diff line number Diff line change
@@ -34,6 +34,14 @@ statement ok
create table test_substr as
select arrow_cast(col1, 'Utf8View') as c1 from test_substr_base;

statement ok
create table test_datetime as
select
arrow_cast(column1, 'Utf8View') as ts,
arrow_cast(column2, 'Utf8View') as d,
arrow_cast(column3, 'Utf8View') as t
from test_datetime_base;

statement ok
drop table test_source

@@ -51,6 +59,9 @@ drop table test_basic_operator;
statement ok
drop table test_substr_base;

statement ok
drop table test_datetime_base;


# --------------------------------------
# String_view specific tests