hadoop - is is possible to count the number of partitions? -


I am working in an exam in which I should know the number of division of the table and check that it is correct or No. If I use the show partitions TableName then I get all the partitions in the name, but I want to do something with lines like the lines, show count (partitions) TableName < / Code> (which is right near BTW .. so it is not good) and get 12 (for the former).
Is there any way to get this?

You can use:

<& lt; TableName & gt; Select> Count (separate & quot; partition key & gt;) before;

Comments