forked from bellwether/minerva
added examples
This commit is contained in:
parent
ffdd27e506
commit
f4dd130266
5 changed files with 102 additions and 0 deletions
14
examples/redshift_basic_query.py
Normal file
14
examples/redshift_basic_query.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import minerva
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
||||
m = minerva.Minerva("hay")
|
||||
red = m.redshift("s3://haystac-pmo-athena/",
|
||||
db="dev",
|
||||
cluster="redshift-cluster-1")
|
||||
query = red.query("select count(*) from myspectrum_schema.kitware where agent = 4")
|
||||
data = query.results()
|
||||
pp.pprint(data.head(10))
|
||||
print(query.runtime)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue