Definition at line 19 of file test_fsi.py.
21 csv_file = root +
"/Tests/Import/datafiles/trips_with_headers_top1000.csv"
23 r = engine.executeDDL(
"""CREATE TEMPORARY TABLE trips (
25 vendor_id TEXT ENCODING NONE,
26 pickup_datetime TIMESTAMP,
27 dropoff_datetime TIMESTAMP,
28 store_and_fwd_flag TEXT ENCODING DICT,
30 pickup_longitude DOUBLE,
31 pickup_latitude DOUBLE,
32 dropoff_longitude DOUBLE,
33 dropoff_latitude DOUBLE,
34 passenger_count BIGINT,
42 improvement_surcharge DOUBLE,
44 payment_type TEXT ENCODING DICT,
46 pickup TEXT ENCODING DICT,
47 dropoff TEXT ENCODING NONE,
48 cab_type TEXT ENCODING DICT,
52 max_temperature BIGINT,
53 min_temperature BIGINT,
54 average_wind_speed DOUBLE,
55 pickup_nyct2010_gid BIGINT,
56 pickup_ctlabel DOUBLE,
57 pickup_borocode BIGINT,
58 pickup_boroname TEXT ENCODING NONE,
60 pickup_boroct2010 BIGINT,
61 pickup_cdeligibil TEXT ENCODING DICT,
62 pickup_ntacode TEXT ENCODING DICT,
63 pickup_ntaname TEXT ENCODING DICT,
65 dropoff_nyct2010_gid BIGINT,
66 dropoff_ctlabel DOUBLE,
67 dropoff_borocode BIGINT,
68 dropoff_boroname TEXT ENCODING NONE,
69 dropoff_ct2010 BIGINT,
70 dropoff_boroct2010 BIGINT,
71 dropoff_cdeligibil TEXT ENCODING NONE,
72 dropoff_ntacode TEXT ENCODING NONE,
73 dropoff_ntaname TEXT ENCODING NONE,
74 dropoff_puma BIGINT) WITH (storage_type='CSV:""" + csv_file +
"""', fragment_size=100);""")
76 r = engine.executeDML(
"select * from trips;")
78 assert r.colCount() == 51
79 assert r.rowCount() == 999