Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add livy (SQL) database #107

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add livy (SQL) database #107

wants to merge 1 commit into from

Conversation

danfrankj
Copy link
Collaborator

@danfrankj danfrankj commented Dec 4, 2020

WIP Adding support for livy client via pylivy

Example session

In [42]: %%livy
    ...: CREATE TABLE dan_frank.testing_metadata (foo INT, bar STRING, baz INT) USING CSV PARTITIONED BY (baz)
livy: Query: Complete after 26.23 sec on 2020-12-02.

In [45]: %%livy
    ...: INSERT INTO dan_frank.testing_metadata VALUES (123, 'abc', 42)
    ...:
livy: Query: Complete after 29.34 sec on 2020-12-02.

In [46]: %%livy
    ...: SELECT * FROM dan_frank.testing_metadata
    ...:
livy: Query: Complete after 29.22 sec on 2020-12-02.
Out[46]:
   foo  bar  baz
0  123  abc   42

TODO

  • add pylivy requirement
  • pass in session properties in init
  • ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant