Skip to content

Commit be0cf05

Browse files
authored
minor: cleanup unnecessary config in decimal.slt (#19352)
Config was introduced as part of 60e00b3#diff-2cb6f61b93633f0057da2135f3556e966e32cd77bd9825dbdb0694c30b0839f1 However the test now succeeds: https://github.com/apache/datafusion/blob/02c647ae1ee5da3605a7f92330b687a42e72d0b6/datafusion/sqllogictest/test_files/decimal.slt#L625-L628 So no need for this config in SLT anymore. Also fold the table into the query for compactness.
1 parent 89af694 commit be0cf05

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

datafusion/sqllogictest/test_files/decimal.slt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -614,22 +614,11 @@ select a / b from foo;
614614
----
615615
0.2
616616

617-
statement ok
618-
create table t as values (arrow_cast(123, 'Decimal256(5,2)'));
619-
620-
# make sure query below runs in single partition
621-
# otherwise error message may not be deterministic
622-
statement ok
623-
set datafusion.execution.target_partitions = 1;
624-
625617
query R
626-
select AVG(column1) from t;
618+
select AVG(column1) from values (arrow_cast(123, 'Decimal256(5,2)'));
627619
----
628620
123
629621

630-
statement ok
631-
drop table t;
632-
633622
statement ok
634623
CREATE EXTERNAL TABLE decimal256_simple (
635624
c1 DECIMAL(50,6) NOT NULL,

0 commit comments

Comments
 (0)