Presto/Python - connect to EMR
- bdata3
- Feb 3, 2020
- 1 min read
Updated: Feb 17, 2020
You have a presto and you want to connect Python to it ....
from pyhive import presto cursor = presto.connect(host='localhost', port=8889).cursor() statement = 'SELECT * FROM my_awesome_data LIMIT 10' cursor.execute(statement) my_results = cursor.fetchall()
[x for x in my_results]
from :

Comments