Skip to content

fix: Support fractional seconds in TIME and INTERVAL data#1109

Merged
krlmlr merged 1 commit into
mainfrom
b-time-frac
Apr 21, 2025
Merged

fix: Support fractional seconds in TIME and INTERVAL data#1109
krlmlr merged 1 commit into
mainfrom
b-time-frac

Conversation

@krlmlr
Copy link
Copy Markdown
Collaborator

@krlmlr krlmlr commented Apr 21, 2025

No description provided.

@krlmlr krlmlr enabled auto-merge (squash) April 21, 2025 04:21
@krlmlr krlmlr requested a review from Copilot April 21, 2025 04:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the handling of fractional seconds for TIME and INTERVAL data types by adjusting the conversion logic and updating the accompanying test snapshots.

  • Update snapshot expected interval value in tests/testthat/_snaps/types.md.
  • Add explicit double casts in src/transform.cpp to ensure fractional seconds are computed correctly.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tests/testthat/_snaps/types.md Refreshes the expected $interval output to reflect the fractional fix.
src/transform.cpp Introduces explicit double casts in TIME and INTERVAL conversion logic.
Files not reviewed (1)
  • tests/testthat/test-timestamp.R: Language not supported

@krlmlr krlmlr merged commit 70b6ca5 into main Apr 21, 2025
@krlmlr krlmlr deleted the b-time-frac branch April 21, 2025 04:48
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants