Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9219

[R] coerce_timestamps in Parquet write options does not work

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.1
    • 1.0.0
    • R
    • macOS 10.15.5, R 4.0.0

    Description

      i am trying to truncate timestamps to milliseconds when writing a parquet file.

      with:

       

      tutu <- as.POSIXct("2020/06/03 18:00:00",tz = "UTC")

      if i do:

       

      write_parquet(data.frame(tutu),"~/Downloads/tutu.test.parquet")

      i get 1591207200000000

      if i do:

       

      write_parquet(data.frame(tutu),"~/Downloads/tutu.test.parquet", coerce_timestamps = "ms", allow_truncated_timestamps = TRUE)

      i get the error message:

       

      {{Error in parquet__ArrowWriterProperties_Builder_coerce_timestamps(unit) :
      argument "unit" is missing, with no default}}

      what am i doing wrong? thanks in advance.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            npr Neal Richardson Assign to me
            slim Slim Bentami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                Slack

                  Issue deployment