Skip to content

Port tests in describe.rs to sqllogictest #8242

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

Merged
merged 15 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
72 changes: 0 additions & 72 deletions datafusion/core/tests/sql/describe.rs

This file was deleted.

1 change: 0 additions & 1 deletion datafusion/core/tests/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ macro_rules! test_expression {
pub mod aggregates;
pub mod create_drop;
pub mod csv_files;
pub mod describe;
pub mod explain_analyze;
pub mod expr;
pub mod group_by;
Expand Down
24 changes: 24 additions & 0 deletions datafusion/sqllogictest/test_files/describe.slt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,27 @@ DROP TABLE aggregate_simple;

statement error Error during planning: table 'datafusion.public.../core/tests/data/aggregate_simple.csv' not found
DESCRIBE '../core/tests/data/aggregate_simple.csv';

##########
# Describe command
##########

statement ok
CREATE EXTERNAL TABLE alltypes_tiny_pages STORED AS PARQUET LOCATION '../../parquet-testing/data/alltypes_tiny_pages.parquet';

query TTT
describe alltypes_tiny_pages;
----
id Int32 YES
bool_col Boolean YES
tinyint_col Int8 YES
smallint_col Int16 YES
int_col Int32 YES
bigint_col Int64 YES
float_col Float32 YES
double_col Float64 YES
date_string_col Utf8 YES
string_col Utf8 YES
timestamp_col Timestamp(Nanosecond, None) YES
year Int32 YES
month Int32 YES