Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies update + redone commands in clap 3.0 + clippy #24

Merged
merged 1 commit into from
May 13, 2022

Conversation

mateuszkj
Copy link
Contributor

@mateuszkj mateuszkj commented Apr 19, 2022

This merge request has only have:

  • arrow 12
  • parquet 12
  • clap 3.0 + rewrite commands for clap::Parser. I have removed trait PQRSCommand in favor of structs.
  • commands cat and head uses Json/Csv writers from arrow.
  • fmt + clippy fixes

All tests passes.

Reason for this MR is it will be easier to add new sub-commands.

@manojkarthick
Copy link
Owner

manojkarthick commented Apr 20, 2022

Thanks a lot for the contribution @mateuszkj. Might take a few days to review since the PR has a lot of changes - hope you don't mind! 😀

@manojkarthick manojkarthick self-requested a review April 20, 2022 18:15
Copy link
Owner

@manojkarthick manojkarthick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @mateuszkj - this looks great! It would be great if you could take a look at that one specific regression.

writeln!(f, "Number of records to print: {}", &self.num_records)?;
writeln!(f, "Use Output format: {}", self.format.to_string())?;
let file = open_file(&opts.file)?;
print_rows(file, Some(opts.records), format)?;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was testing with a JSON file and the update seems to introduce a new regression with some files:

Error: ArrowReadWriteError(JsonError("data type Decimal(12, 6) not supported in nested map for json writer"))

Doesn't have an issue with the old implementation

@manojkarthick manojkarthick merged commit d33dca9 into manojkarthick:master May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants