Skip to content

Instantly share code, notes, and snippets.

@ragingbal
Last active June 21, 2020 11:23
Show Gist options
  • Save ragingbal/3148cf05c35e159e5b9b1264490d0505 to your computer and use it in GitHub Desktop.
Save ragingbal/3148cf05c35e159e5b9b1264490d0505 to your computer and use it in GitHub Desktop.
conn = hive.connect(host=host, port=port, username=username, database=schema, password=password, auth='LDAP')
query = ("select * from test_bal.abc limit 10")
cur = conn.cursor()
cur.execute(query)
cur.fetchall()
cur.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment