Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode Date32 arrow type in DataFrame #7261

Closed
vthemelis opened this issue Oct 6, 2024 · 0 comments
Closed

Decode Date32 arrow type in DataFrame #7261

vthemelis opened this issue Oct 6, 2024 · 0 comments
Labels
enhancement New feature or request in-pr

Comments

@vthemelis
Copy link

Is your feature request related to a problem? Please describe.
At the moment, it looks like it's not possible to read RecordBatches of Date32s:

using Apache.Arrow;
using Microsoft.Data.Analysis;

var batch = new RecordBatch.Builder()
    .Append("DateColumn", false, new Date32Array.Builder().AppendRange(Enumerable.Repeat(DateTime.Now, 10)).Build())
    .Build();

DataFrame.FromArrowRecordBatch(batch);

gives:

Unhandled exception. System.NotImplementedException: date32
   at Microsoft.Data.Analysis.DataFrame.AppendDataFrameColumnFromArrowArray(Field field, IArrowArray arrowArray, DataFrame ret, String fieldNamePrefix)
   at Microsoft.Data.Analysis.DataFrame.FromArrowRecordBatch(RecordBatch recordBatch)
   at Program.<Main>$(String[] args)
@vthemelis vthemelis added the enhancement New feature or request label Oct 6, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Oct 6, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in-pr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant