qubole / qds-sdk-R

R extension to execute Hive Commands through Qubole Data Service Python SDK.
https://api.qubole.com
4 stars 5 forks source link

Getting result of a query in a data frame in R #2

Open mau5lives opened 9 years ago

mau5lives commented 9 years ago

Hi,

I am trying to get the result of a hive command in a data frame in R using the qds package.

results<-qds::quboleHiveCommand(query="show tables" ,api_token='xxx')

But instead of getting the result of my query in 'results' , i just get the output of my query in the R console. Is there any way to get the result set of the query in a data frame??

Thanks Japneesh Singh

karandeep-johar commented 9 years ago

I had made the changes to this code. But I didn't repush the code again. You have to make changes in quboleHiveCommand.R file. instead of cat(results) just do return results. You can look at it here. https://github.com/KarandeepJohar/qds-sdk-R-1. Sorry about that.

psychicindian commented 8 years ago

This is fixed in the latest implementation of qubole r-sdk

venciso commented 7 years ago

Hi, On quboleHiveCommand.R I still see: cat(results)

so I cannot load results into a data frame. Could you push this change please?