Uh oh!
There was an error while loading. Please reload this page.
New parquet tools commands - #132
Conversation
There was a problem hiding this comment.
Nit: It looks like you're mixing spaces and tabs. The rest of the project uses 2-space indentation, which would really help the readability of this code.
There was a problem hiding this comment.
All tabs are removed.
rdblue
commented
Mar 6, 2015
Initially, I thought that these should work on a single file the other commands, but it sounds like you have a use case I'm not thinking about and intended for the commands to work that way. I think I can see the value of getting the total row count for a directory, since it would require adding up all of the individual counts from meta or dump. What I'm not sure is useful is the size command -- why is that needed? |
swapnilushinde
commented
Mar 6, 2015
@rdblue , As you said, I built these two commands considering, getting row counts & size of directories/globs containing parquet data assets. We have partitioned data in parquet for hive tables. It will be helpful if I can see total row count & size of complete data with it's breakdown in partitions. I can easily see if my parquet data asset evenly distribution. |
Conflicts: parquet-column/pom.xml parquet-tools/pom.xml
rdblue
commented
Mar 11, 2015
@swapnilushinde, that use case sounds reasonable so let's add them back. Are there other commands that make sense to have a glob also? Someone is adding it to the schema command, see #136. |
swapnilushinde
commented
Mar 16, 2015
rdblue
commented
Mar 23, 2015
@swapnilushinde thanks! I'll take a look soon-ish. |
prateek
commented
Apr 10, 2015
Hey @swapnilushinde, @rdblue: A few comments about this approach - a) I really like the -o [<**c**ompressed>|<**u**ncompressed>],[...]e) In fact with the approach mentioned above, we could simplify the implementation a bit - both What do you think? I'm happy to help with the work in implementing ideas we deem useful in a follow up PR if we don't do it all here. |
swapnilushinde
commented
Apr 10, 2015
@prateek Thank for your reply. I agree with you. Overall, I am thinking of opening another PR to work on it. Let's keep this PR as it is so we can get it merged. We could open another PR to implement all above features with some more commands after brainstorming. |
prateek
commented
Apr 13, 2015
@swapnilushinde Ideally, I'd say we don't commit any of the stuff where I can pick up the parts we leave off here in this PR: 1 On 10 Apr 2015, at 17:57, Swapnil wrote:
|
swapnilushinde
commented
Apr 28, 2015
kadwanev
commented
Apr 28, 2016
Why hasn't this been merged? |
swapnilushinde
commented
Apr 28, 2016
@rdblue - It's been long time I worked on this. Let me know if you need any further changes or can be merged directly. |
Lucas-C
commented
Feb 16, 2017
Hi. |
julienledem
commented
Feb 16, 2017
@rdblue this looks good to go. Any other comments? |
rdblue
commented
Feb 16, 2017
Looks fine to me. |
swapnilushinde
commented
Feb 16, 2017
@rdblue Thank you.. Please let me know if I need to do something. Wanting to get it merged for long time.. |
julienledem
commented
Feb 16, 2017
@Swapnil: please create a PARQUET jira for this and prefix the description with the id: PARQUET-X: ... |
julienledem
commented
Feb 16, 2017
@swapnilushinde gentle nagging on PRs is always fine :). Sometimes if your comment shows up at a busy time it falls through the cracks. Thank you for your contribution. |
swapnilushinde
commented
Feb 17, 2017
@rdblue@julienledem I have created another PR with rebase. |
julienledem
commented
Feb 18, 2017
@swapnilushinde sorry your new PR is on the old repo. use apache/parquet-mr not Parquet/parquet-mr. |
swapnilushinde
commented
Feb 23, 2017
@julienledem Sorry about that. Please find this PR based on apache/parquet-mr repo. |
swapnilushinde
commented
Mar 1, 2017
@julienledem@rdblue : can you please take a look at above PR? |
This is a rebase on already existing PR- #132 Author: Swapnil Shinde <swapnilushinde@gmail.com> Closes#406 from swapnilushinde/master and squashes the following commits: 59a8980 [Swapnil Shinde] Spacing to conform java style (if/for) is fixed 5fd0279 [Swapnil Shinde] Parquet-196: parquet-tools command for row count & size
ghost
commented
Apr 25, 2018
this is useful, can we rebase and merge this in? |
swapnilushinde
commented
Apr 29, 2018
This is a rebase on already existing PR- apache/parquet-java#132 Author: Swapnil Shinde <swapnilushinde@gmail.com> Closes #406 from swapnilushinde/master and squashes the following commits: 59a8980 [Swapnil Shinde] Spacing to conform java style (if/for) is fixed 5fd0279 [Swapnil Shinde] Parquet-196: parquet-tools command for row count & size (cherry picked from commit fd7cfed) Change-Id: I5bf7a27ea1bafa4145fdf1fb25610ded0308ac42
meetchandan
commented
Mar 29, 2019
Looks useful, why not merge after resolving conflicts? |
Parquet files contain metadata about rowcount & file size. We should have new commands to get rows count & size.
These command helps us to avoid parsing job logs or loading data once again just to find number of rows in data. This comes very handy in complex process chaining, post processes like stats generation, QA etc.
These command can be added in parquet-tools:
Examples with possible combinations-
Jira ticket-
https://issues.apache.org/jira/browse/PARQUET-196