Skip to content

Conversation

@tustvold
Copy link
Contributor

@tustvold tustvold commented Jul 21, 2023

Which issue does this PR close?

Closes #4554

Rationale for this change

Changes the display of durations to be more legible

What changes are included in this PR?

Are there any user-facing changes?

@tustvold tustvold requested a review from alamb July 21, 2023 21:15
@github-actions github-actions bot added the arrow Changes to the arrow crate label Jul 21, 2023
Comment on lines 547 to 550
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not hugely wedded to this format and welcome alternative suggestions. I think faithfully producing the unit of the duration is important, and distinguishes durations from intervals, but otherwise I have no strong opinions

Copy link
Contributor

Choose a reason for hiding this comment

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

I need to do some research here --

for example, given 1000ms I think many users would like to see 1 sec. I realize there are details of why this may not always be totally accurately for larger durations...

Maybe something like 1.032 sec could be used to represent the unit (based on number of decimal places...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like the idea of a number of seconds with a decimal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've pushed a commit that changes to do this

@tustvold tustvold changed the title Change Duration Display (#4555) Change Duration Display (#4554) Jul 21, 2023
@alamb
Copy link
Contributor

alamb commented Jul 24, 2023

So in general I think this change definitely makes the durations more legible. However, I am worried about its backwards compatibility implications (like what will happen to people whose software relies on the old formats? Or has data in the old format?)

@tustvold
Copy link
Contributor Author

Superseded by #4581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Changes to the arrow API arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Human Readable Duration Display

2 participants