qubole / qds-sdk-java

A Java library that provides the tools you need to authenticate with, and use the Qubole Data Service API.

Home Page:https://api.qubole.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get command history by command type.

VenkataKarthikP opened this issue · comments

Problem:
client.command().history().invoke(); currently lists all commands from that user. But need to have ability to provide parameters for command type (say hive, presto...)

https://docs.qubole.com/en/latest/rest-api/command_api/view-command-history.html - Rest API already supports that -

-d '{"command_type":"ShellCommand,HiveCommand", "name":"named_command"}' \
"https://api.qubole.com/api/v1.2/commands" 

I feel we should have method to update parameters in https://github.com/qubole/qds-sdk-java/blob/master/src/main/java/com/qubole/qds/sdk/java/details/CommandApiImpl.java .

Fixed with #119
Thanks!