mirror of
https://github.com/hanzo-ds/driver.git
synced 2026-10-30 20:32:40 +00:00
The wire protocol was the last holdout and it was not cosmetic: the Hanzo Datastore server reads X-Datastore-User, and answers a request bearing X-ClickHouse-User with 401. Verified against the live server, both directions. So a client still sending the old headers is not merely off-brand, it cannot authenticate over HTTP. Everything else follows: types, dialects, error modules, docstrings and doc links now name Datastore, and doc URLs point at docs.hanzo.ai/datastore rather than the upstream vendor's site. Zero occurrences of the old name remain. Still cut from the pinned upstream version, so behaviour is unchanged.
11 lines
292 B
Python
11 lines
292 B
Python
import sys
|
|
import datastore_connect
|
|
|
|
query = "SELECT * FROM perftest.ontime WHERE FlightDate < '{}'".format(sys.argv[1])
|
|
client = datastore_connect.get_client(host='localhost', query_limit=None, compress=False)
|
|
|
|
rv = client.query(query)
|
|
with rv:
|
|
for row in rv.stream_rows():
|
|
pass
|