0

I need to programmatically query Qubole for the list of partitions for a Hive table. I can do this by calling the correct API endpoint as described here, but I would like to use the qds-sdj-java client to do this (I am already using it for other things).

In looking through the client's Javadoc API documentation, I don't see an option for doing this. Is there a way and I am just overlooking it? Is calling the endpoint directly the only option?

GreenGiant
  • 4,930
  • 1
  • 46
  • 76

3 Answers3

0

You can refer to Hive Command Example Using QDS-SDK where you can pass show partitions table_name; query for your Hive Table. Hope this is helpful.

Disha
  • 1
0

It turns out that the published Javadocs for the QDS Client are simply out of date. The actual library itself supports list partitions in version 1.1.0.

InvokableBuilder<List<TablePartitionsAndLocation>> viewTablePartitionsAndLocation(String tableName);
GreenGiant
  • 4,930
  • 1
  • 46
  • 76
0

Oh, Got it. Yes, We will update the javadocs for the QDS Client. Glad that you found the solution you were looking for.

Disha
  • 1