Skip to content

Instantly share code, notes, and snippets.

@prasanthj
Created February 21, 2019 03:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prasanthj/51993ae684033864c2512fed3c7d8b01 to your computer and use it in GitHub Desktop.
Save prasanthj/51993ae684033864c2512fed3c7d8b01 to your computer and use it in GitHub Desktop.
Total row count from orc file dumps
hive --orcfiledump <orc-table-path> | grep "Rows:" | cut -f2 -d":" | awk '{s+=$1}END{print s}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment