Skip to content

Add support for Apache.Arrow.Types.TimestampType #6809

Closed

Description

@Chiragjasuja

System Information (please complete the following information):

  • Win 10
  • Microsoft.Data.Analysis v0.20.1
  • .NET Version: .NET 6

Describe the bug
I am getting below exception

Unhandled exception. System.NotImplementedException: timestamp
at Microsoft.Data.Analysis.DataFrame.AppendDataFrameColumnFromArrowArray(Field field, IArrowArray arrowArray, DataFrame ret, String fieldNamePrefix)
at Microsoft.Data.Analysis.DataFrame.FromArrowRecordBatch(RecordBatch recordBatch)
at Program.

$(String[] args) in C:\Users\mrchi\source\repos\ApacheArrowExample\ApacheArrowExample\Program.cs:line 17
at Program.(String[] args)

To Reproduce
Steps to reproduce the behavior:

  1. Take a .arrow file with one column of type Apache.Arrow.Types.TimestampType
  2. var dataframe = DataFrame.FromArrowRecordBatch(recordBatch);
  3. It will throw above exception

Expected behavior
The record batch should transform to Dataframe with appropriate tye to handle timestamp (Datetime maybe)

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Sep 3, 2023
  2. totalgit74 commented on Sep 6, 2023

    @totalgit74

    I'd like to see this implemented. Time-series require it and using the Arrow IPC/feather format to move data between .Net, R data.table and Python DataFrame as required is very handy in order to make language agnostic data stores/formats.

  3. bhuesemann commented on Oct 10, 2023

    @bhuesemann

    Same issue here while processing arrow data from BigQuery IPC. The timestamp datatyp is pretty much basic to many analysis use-cases and thus needs to be supported.

  4. ghost added
    in-prA pull request is open to resolve this issue
    on Oct 22, 2023
  5. ghost removed
    in-prA pull request is open to resolve this issue
    on Dec 7, 2023
  6. ghost removed
    untriagedNew issue has not been triaged
    on Dec 7, 2023
  7. locked and limited conversation to collaborators on Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions