forked from bellwether/minerva
restructuring as a library with athena and redshift
This commit is contained in:
parent
adf909608d
commit
c32f8359e7
8 changed files with 18 additions and 8 deletions
9
test2.py
9
test2.py
|
|
@ -1,4 +1,4 @@
|
|||
import blueshift as b
|
||||
import minerva.blueshift as b
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
|
@ -7,7 +7,8 @@ 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())
|
||||
print(query)
|
||||
data = query.results()
|
||||
pp.pprint(data.head(10))
|
||||
print(query.runtime)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue