Skip to content

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

@Chiragjasuja

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)

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