forked from bellwether/minerva
added support for redshift
This commit is contained in:
parent
ac657f671d
commit
adf909608d
3 changed files with 120 additions and 9 deletions
13
test2.py
Normal file
13
test2.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import blueshift as b
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
||||
red = b.Redshift("hay", "s3://haystac-pmo-athena/",
|
||||
db="dev",
|
||||
cluster="redshift-cluster-1")
|
||||
query = red.query("select count(*) from myspectrum_schema.kitware")
|
||||
res = query.results()
|
||||
pp.pprint(res.head(10))
|
||||
pp.pprint(query.info())
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue