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

sqllogictest: move the creation of the nan_table from Rust to slt #9022

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

jonahgao
Copy link
Member

Which issue does this PR close?

N/A

Rationale for this change

Make the implementation of this test simpler and more localized.

What changes are included in this PR?

Move the creation of the nan_table from Rust to slt.

Are these changes tested?

Yes, existing tests.

Are there any user-facing changes?

No

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jan 27, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jonahgao -- this is a great cleanup

@@ -1383,7 +1383,8 @@ create table test_boolean(c1 boolean) as values (false), (null), (true);
statement ok
create table test_int32(c1 int) as values (0), (1), (null), (3);

## Note that test_float has a NaN (which is not possible to create in SQL) so it is registered via rust.
statement ok
create table test_float(c1 double) as values (1.0), (null), ('NaN'::double);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double checked

❯ select arrow_typeof('NaN'::double), 'NaN'::double;
+---------------------------+-------------+
| arrow_typeof(Utf8("NaN")) | Utf8("NaN") |
+---------------------------+-------------+
| Float64                   | NaN         |
+---------------------------+-------------+
1 row in set. Query took 0.004 seconds.

👍

@alamb alamb merged commit 7a5f205 into apache:main Jan 27, 2024
22 checks passed
@jonahgao jonahgao deleted the nan_table branch January 28, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants