You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[R] Update the docs to show how to avoid situations like data loss with leading zero in partition column #39660
Looking at the generated dataset it correctly writes the leading zero: 'test=08' but the parquet reader implicitly converts to int. So the fix probably needs to happen in the C++ lib, right @paleolimbot
I think it may work to explicitly set the partitioning argument in open_dataset()...something like open_dataset(..., partitioning = hive_partitioning(test = string()).
changed the title [-][R] Data loss with leading zero in partition column[/-][+][R] Update the docs to show how to avoid situations like data loss with leading zero in partition column[/+]on Jan 30, 2024
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
Activity
assignUser commentedon Jan 17, 2024
Looking at the generated dataset it correctly writes the leading zero:
'test=08'but the parquet reader implicitly converts to int. So the fix probably needs to happen in the C++ lib, right @paleolimbotpaleolimbot commentedon Jan 18, 2024
I think it may work to explicitly set the
partitioningargument inopen_dataset()...something likeopen_dataset(..., partitioning = hive_partitioning(test = string()).assignUser commentedon Jan 18, 2024
Thanks @paleolimbot, that does work:
thisisnic commentedon Jan 30, 2024
This is great stuff! We should add this to the docs as it's not immediately obvious (i.e. I had no idea this was the case)
[-][R] Data loss with leading zero in partition column[/-][+][R] Update the docs to show how to avoid situations like data loss with leading zero in partition column[/+]github-actions commentedon Nov 18, 2025
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
nil68657 commentedon Aug 10, 2026
Anyone working on this?
apacheGH-39660: [R] Document partition value types
apacheGH-39660: refine partitioning example
thisisnic commentedon Sep 30, 2026
Issue resolved by pull request 50857
#50857
apacheGH-39660: [R] Document partition value types (apache#50857)