From 5d92abc124550951289b42bd1186f5ff91becbde Mon Sep 17 00:00:00 2001 From: Piotr Findeisen <piotr.findeisen@gmail.com> Date: Sat, 16 Nov 2024 18:09:56 +0100 Subject: [PATCH] Rename table_with_many_types in tests --- datafusion/sqllogictest/src/test_context.rs | 7 +++++-- .../test_files/information_schema_columns.slt | 16 ++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/datafusion/sqllogictest/src/test_context.rs b/datafusion/sqllogictest/src/test_context.rs index 477f225443e2..0d59fb826a2f 100644 --- a/datafusion/sqllogictest/src/test_context.rs +++ b/datafusion/sqllogictest/src/test_context.rs @@ -251,8 +251,11 @@ pub async fn register_table_with_many_types(ctx: &SessionContext) { .unwrap(); ctx.register_catalog("my_catalog", Arc::new(catalog)); - ctx.register_table("my_catalog.my_schema.t2", table_with_many_types()) - .unwrap(); + ctx.register_table( + "my_catalog.my_schema.table_with_many_types", + table_with_many_types(), + ) + .unwrap(); } pub async fn register_table_with_map(ctx: &SessionContext) { diff --git a/datafusion/sqllogictest/test_files/information_schema_columns.slt b/datafusion/sqllogictest/test_files/information_schema_columns.slt index 7cf845c16d73..d348a764fa85 100644 --- a/datafusion/sqllogictest/test_files/information_schema_columns.slt +++ b/datafusion/sqllogictest/test_files/information_schema_columns.slt @@ -37,17 +37,17 @@ query TTTTITTTIIIIIIT rowsort SELECT * from information_schema.columns; ---- my_catalog my_schema t1 i 0 NULL YES Int32 NULL NULL 32 2 NULL NULL NULL -my_catalog my_schema t2 binary_col 4 NULL NO Binary NULL 2147483647 NULL NULL NULL NULL NULL -my_catalog my_schema t2 float64_col 1 NULL YES Float64 NULL NULL 24 2 NULL NULL NULL -my_catalog my_schema t2 int32_col 0 NULL NO Int32 NULL NULL 32 2 NULL NULL NULL -my_catalog my_schema t2 large_binary_col 5 NULL NO LargeBinary NULL 9223372036854775807 NULL NULL NULL NULL NULL -my_catalog my_schema t2 large_utf8_col 3 NULL NO LargeUtf8 NULL 9223372036854775807 NULL NULL NULL NULL NULL -my_catalog my_schema t2 timestamp_nanos 6 NULL NO Timestamp(Nanosecond, None) NULL NULL NULL NULL NULL NULL NULL -my_catalog my_schema t2 utf8_col 2 NULL YES Utf8 NULL 2147483647 NULL NULL NULL NULL NULL +my_catalog my_schema table_with_many_types binary_col 4 NULL NO Binary NULL 2147483647 NULL NULL NULL NULL NULL +my_catalog my_schema table_with_many_types float64_col 1 NULL YES Float64 NULL NULL 24 2 NULL NULL NULL +my_catalog my_schema table_with_many_types int32_col 0 NULL NO Int32 NULL NULL 32 2 NULL NULL NULL +my_catalog my_schema table_with_many_types large_binary_col 5 NULL NO LargeBinary NULL 9223372036854775807 NULL NULL NULL NULL NULL +my_catalog my_schema table_with_many_types large_utf8_col 3 NULL NO LargeUtf8 NULL 9223372036854775807 NULL NULL NULL NULL NULL +my_catalog my_schema table_with_many_types timestamp_nanos 6 NULL NO Timestamp(Nanosecond, None) NULL NULL NULL NULL NULL NULL NULL +my_catalog my_schema table_with_many_types utf8_col 2 NULL YES Utf8 NULL 2147483647 NULL NULL NULL NULL NULL # Cleanup statement ok drop table t1 statement ok -drop table t2 +drop table table_with_many_types