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

get_results() does not seem to be working #149

Closed
patrick-bark opened this issue Apr 22, 2016 · 1 comment
Closed

get_results() does not seem to be working #149

patrick-bark opened this issue Apr 22, 2016 · 1 comment

Comments

@patrick-bark
Copy link

Hey, so I launched a query:

hive_command_response = HiveCommand.create(query=sql)

then I wait for the query to finish:

cmd = Command.find(hive_command_response.id)
while not Command.is_done(cmd.status):
    time.sleep(Qubole.poll_interval)
    cmd = Command.find(hive_command_response.id)
    print('current jobs status is: ' + cmd.status)

then once it is finished, I want to get the results:

res = hive_command_response.get_results()

except that variable is empty, but if i do:

res = hive_command_response.get_log()

I see the correct log, and if I log in to the web app I can see my results.

why am I not seeing them with the python call?

@patrick-bark
Copy link
Author

Figured it out, needs file object. Closing now

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

No branches or pull requests

1 participant