Skip to content

Commit a7c2020

Browse files
remove slt changes and clippy
1 parent 58ed9a3 commit a7c2020

11 files changed

Lines changed: 11 additions & 12 deletions

File tree

datafusion/datasource/src/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ impl PartitionedFile {
294294
avg_byte_size: partition_value
295295
.data_type()
296296
.primitive_width()
297-
.map(|w| Precision::Exact(w))
297+
.map(Precision::Exact)
298298
.unwrap_or_else(|| Precision::Absent),
299299
};
300300
stats.column_statistics.push(col_stats);

datafusion/sqllogictest/test_files/datetime/arith_date_time.slt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ SELECT '2001-09-28'::date / '03:00'::time
113113

114114
query error Invalid timestamp arithmetic operation
115115
SELECT '2001-09-28'::date % '03:00'::time
116+

datafusion/sqllogictest/test_files/datetime/arith_timestamp_duration.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ query error Invalid timestamp arithmetic operation
144144
SELECT '2001-09-28T01:00:00'::timestamp % arrow_cast(12345, 'Duration(Second)');
145145

146146
query error Invalid timestamp arithmetic operation
147-
SELECT '2001-09-28T01:00:00'::timestamp / arrow_cast(12345, 'Duration(Second)');
147+
SELECT '2001-09-28T01:00:00'::timestamp / arrow_cast(12345, 'Duration(Second)');

datafusion/sqllogictest/test_files/encrypted_parquet.slt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,5 @@ float_field float
8585
)
8686
STORED AS PARQUET LOCATION 'test_files/scratch/encrypted_parquet/'
8787

88-
query RR
88+
query error DataFusion error: Parquet error: Parquet error: Parquet file has an encrypted footer but decryption properties were not provided
8989
SELECT * FROM parquet_table
90-
----
91-
5 6
92-
-1 -1
93-
1 2
94-
3 4

datafusion/sqllogictest/test_files/limit.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,4 +871,4 @@ DROP TABLE test_limit_with_partitions;
871871

872872
# Tear down src_table table:
873873
statement ok
874-
DROP TABLE src_table;
874+
DROP TABLE src_table;

datafusion/sqllogictest/test_files/limit_single_row_batches.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ SELECT COUNT(*) FROM (SELECT i FROM filter_limit WHERE i <> 0 LIMIT 1);
1919
1
2020

2121
statement ok
22-
DROP TABLE filter_limit;
22+
DROP TABLE filter_limit;

datafusion/sqllogictest/test_files/spark/collection/size.slt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,4 @@ SELECT size(column1) FROM VALUES (map(['a'], [1])), (map(['a','b'], [1,2])), (NU
129129
1
130130
2
131131
-1
132+

datafusion/sqllogictest/test_files/spark/datetime/time_trunc.slt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ NULL
7171
# incorrect format
7272
query error DataFusion error: Optimizer rule 'simplify_expressions' failed\ncaused by\nError during planning: The format argument of `TIME_TRUNC` must be one of: hour, minute, second, millisecond, microsecond
7373
SELECT time_trunc('test', '09:32:05.123456'::time);
74+

datafusion/sqllogictest/test_files/spark/datetime/trunc.slt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ SELECT trunc('2009-02-12'::date, NULL::string);
9090
# incorrect format
9191
query error DataFusion error: Optimizer rule 'simplify_expressions' failed\ncaused by\nError during planning: The format argument of `TRUNC` must be one of: year, yy, yyyy, month, mm, mon, day, week, quarter.
9292
SELECT trunc('2009-02-12'::date, 'test'::string);
93+

datafusion/sqllogictest/test_files/struct.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,4 +1664,4 @@ order by id;
16641664
3 2 150
16651665

16661666
statement ok
1667-
drop table t_agg_window;
1667+
drop table t_agg_window;

0 commit comments

Comments
 (0)