mirror of
https://github.com/hanzo-ds/driver.git
synced 2026-10-30 20:32:40 +00:00
8 lines
296 B
Python
8 lines
296 B
Python
import sys
|
|
import requests
|
|
|
|
query = "SELECT * FROM perftest.ontime WHERE FlightDate < '{}' FORMAT TSV".format(sys.argv[1])
|
|
resp = requests.get('http://localhost:8123/', stream=True, params={'query': query})
|
|
|
|
data = [line.decode('utf-8').split('\t') for line in resp.iter_lines(chunk_size=10000)]
|