forked from bellwether/minerva
Initial commit
This commit is contained in:
commit
0f033a54b7
4 changed files with 109 additions and 0 deletions
15
test.py
Normal file
15
test.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import access as a
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
||||
athena = a.Athena("hay", "s3://haystac-pmo-athena/")
|
||||
query = athena.query('select * from "trajectories"."kitware" limit 10')
|
||||
data = query.results()
|
||||
print(data.head(10))
|
||||
|
||||
# Everything *needs* to have a column in order for parquet to work, so scalar
|
||||
# values have to be assigned something, so here we use `as count` to create
|
||||
# a temporary column called `count`
|
||||
print(athena.query("select count(*) as count from trajectories.kitware").results().head(1))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue