Skip to content

Commit f60e50d

Browse files
committed
remove unused test data files, manually recreate uk_cities.csv because I can't trace where the original data came from
1 parent 28d914a commit f60e50d

File tree

6 files changed

+7
-41
lines changed

6 files changed

+7
-41
lines changed

rust/datafusion/src/execution/aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ mod tests {
10511051
.as_any()
10521052
.downcast_ref::<Float64Array>()
10531053
.unwrap();
1054-
assert_eq!(50.376289, min_lat.value(0));
1054+
assert_eq!(51.507222, min_lat.value(0));
10551055
}
10561056

10571057
#[test]
@@ -1086,7 +1086,7 @@ mod tests {
10861086
.as_any()
10871087
.downcast_ref::<Float64Array>()
10881088
.unwrap();
1089-
assert_eq!(57.477772, max_lat.value(0));
1089+
assert_eq!(53.479444, max_lat.value(0));
10901090
}
10911091

10921092
#[test]
-28.5 KB
Binary file not shown.
-1.81 KB
Binary file not shown.
Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
1-
"Elgin, Scotland, the UK",57.653484,-3.335724
2-
"Stoke-on-Trent, Staffordshire, the UK",53.002666,-2.179404
3-
"Solihull, Birmingham, UK",52.412811,-1.778197
4-
"Cardiff, Cardiff county, UK",51.481583,-3.179090
5-
"Eastbourne, East Sussex, UK",50.768036,0.290472
6-
"Oxford, Oxfordshire, UK",51.752022,-1.257677
7-
"London, UK",51.509865,-0.118092
8-
"Swindon, Swindon, UK",51.568535,-1.772232
9-
"Gravesend, Kent, UK",51.441883,0.370759
10-
"Northampton, Northamptonshire, UK",52.240479,-0.902656
11-
"Rugby, Warwickshire, UK",52.370876,-1.265032
12-
"Sutton Coldfield, West Midlands, UK",52.570385,-1.824042
13-
"Harlow, Essex, UK",51.772938,0.102310
14-
"Aberdeen, Aberdeen City, UK",57.149651,-2.099075
15-
"Swansea, Swansea, UK",51.621441,-3.943646
16-
"Chesterfield, Derbyshire, UK",53.235046,-1.421629
17-
"Londonderry, Derry, UK",55.006763,-7.318268
18-
"Salisbury, Wiltshire, UK",51.068787,-1.794472
19-
"Weymouth, Dorset, UK",50.614429,-2.457621
20-
"Wolverhampton, West Midlands, UK",52.591370,-2.110748
21-
"Preston, Lancashire, UK",53.765762,-2.692337
22-
"Bournemouth, UK",50.720806,-1.904755
23-
"Doncaster, South Yorkshire, UK",53.522820,-1.128462
24-
"Ayr, South Ayrshire, UK",55.458565,-4.629179
25-
"Hastings, East Sussex, UK",50.854259,0.573453
26-
"Bedford, UK",52.136436,-0.460739
27-
"Basildon, Essex, UK",51.572376,0.470009
28-
"Chippenham, Wiltshire, UK",51.458057,-2.116074
29-
"Belfast, UK",54.607868,-5.926437
30-
"Uckfield, East Sussex, UK",50.967941,0.085831
31-
"Worthing, West Sussex, UK",50.825024,-0.383835
32-
"Leeds, West Yorkshire, UK",53.801277,-1.548567
33-
"Kendal, Cumbria, UK",54.328506,-2.743870
34-
"Plymouth, UK",50.376289,-4.143841
35-
"Haverhill, Suffolk, UK",52.080875,0.444517
36-
"Frankton, Warwickshire, UK",52.328415,-1.377561
37-
"Inverness, the UK",57.477772,-4.224721
1+
City,Lat,Lon
2+
"London, UK",51.507222,-0.1275
3+
"Manchester, UK",53.479444,-2.245278
-1.75 KB
Binary file not shown.

rust/datafusion/tests/sql.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn csv_query_with_predicate() {
3636
let sql =
3737
"SELECT city, lat, lng, lat + lng FROM cities WHERE lat > 51.0 AND lat < 53";
3838
let actual = execute(&mut ctx, sql);
39-
let expected= "\"Solihull, Birmingham, UK\"\t52.412811\t-1.778197\t50.634614\n\"Cardiff, Cardiff county, UK\"\t51.481583\t-3.17909\t48.302493\n\"Oxford, Oxfordshire, UK\"\t51.752022\t-1.257677\t50.494344999999996\n\"London, UK\"\t51.509865\t-0.118092\t51.391773\n\"Swindon, Swindon, UK\"\t51.568535\t-1.772232\t49.796302999999995\n\"Gravesend, Kent, UK\"\t51.441883\t0.370759\t51.812642\n\"Northampton, Northamptonshire, UK\"\t52.240479\t-0.902656\t51.337823\n\"Rugby, Warwickshire, UK\"\t52.370876\t-1.265032\t51.105844000000005\n\"Sutton Coldfield, West Midlands, UK\"\t52.570385\t-1.824042\t50.746343\n\"Harlow, Essex, UK\"\t51.772938\t0.10231\t51.875248000000006\n\"Swansea, Swansea, UK\"\t51.621441\t-3.943646\t47.677794999999996\n\"Salisbury, Wiltshire, UK\"\t51.068787\t-1.794472\t49.274315\n\"Wolverhampton, West Midlands, UK\"\t52.59137\t-2.110748\t50.480622\n\"Bedford, UK\"\t52.136436\t-0.460739\t51.67569700000001\n\"Basildon, Essex, UK\"\t51.572376\t0.470009\t52.042384999999996\n\"Chippenham, Wiltshire, UK\"\t51.458057\t-2.116074\t49.341983\n\"Haverhill, Suffolk, UK\"\t52.080875\t0.444517\t52.525392\n\"Frankton, Warwickshire, UK\"\t52.328415\t-1.377561\t50.950854\n".to_string();
39+
let expected= "\"London, UK\"\t51.507222\t-0.1275\t51.379722\n".to_string();
4040
assert_eq!(expected, actual);
4141
}
4242

@@ -77,7 +77,7 @@ fn csv_query_cast() {
7777
register_cities_csv(&mut ctx);
7878
let sql = "SELECT CAST(lat AS int) FROM cities";
7979
let actual = execute(&mut ctx, sql);
80-
let expected= "53\n52\n51\n50\n51\n51\n51\n51\n52\n52\n52\n51\n57\n51\n53\n55\n51\n50\n52\n53\n50\n53\n55\n50\n52\n51\n51\n54\n50\n50\n53\n54\n50\n52\n52\n57\n".to_string();
80+
let expected= "51\n53\n".to_string();
8181
assert_eq!(expected, actual);
8282
}
8383

0 commit comments

Comments
 (0)