How To: Examples using the Python SDK


This guide provides a few useful commands for interacting with QDS using the Python SDK. Further information about the Python SDK can be found here.

How To:

Run a command and wait for the result (Synchronous):

  • --token '' hivecmd run --query "show tables" --cluster-label ''

Run a command and return the command ID (Asynchronous):

  • --token '' hivecmd submit --query "show table" --cluster-label ''

Check the status of a running command:

  • --token '' hivecmd check <commandID> --cluster-label ''

Retrieve the results from a completed command:

  • --token '' hivecmd getresult <commandID> --cluster-label ''
Have more questions? Submit a request


Powered by Zendesk