75 'timestamp': [datetime.datetime(2010, 4, 1, 0, 0), datetime.datetime(2010, 4, 1, 0, 30), datetime.datetime(2010, 4, 1, 1, 0)],
76 'symbol': [
'USD/JPY',
'USD/JPY',
'USD/JPY'],
77 'high': [93.526, 93.475, 93.421],
78 'low': [93.361, 93.352, 93.326],
79 'open': [93.518, 93.385, 93.391],
80 'close': [93.382, 93.391, 93.384],
81 'spread': [0.005, 0.006, 0.006],
82 'volume': [3049, 2251, 1577]
85 b
'timestamp,symbol,high,low,open,close,spread,volume\n'
86 b
'2010-04-01 00:00:00,USD/JPY,93.52600,93.36100,93.51800,93.38200,0.00500,3049\n'
87 b
'2010-04-01 00:30:00,USD/JPY,93.47500,93.35200,93.38500,93.39100,0.00600,2251\n'
88 b
'2010-04-01 01:00:00,USD/JPY,93.42100,93.32600,93.39100,93.38400,0.00600,1577\n'
91 table = csv.read_csv(fp)
93 engine.importArrowTable(
"time_parsing", table)
94 assert bool(engine.closed) ==
False
95 cursor = engine.executeDML(
"select * from time_parsing")
97 batch = cursor.getArrowRecordBatch()
99 assert batch.to_pydict() == target