parquet-dotnet icon indicating copy to clipboard operation
parquet-dotnet copied to clipboard

Expected System.DateTimeOffset but found System.DateTime

Open coccor opened this issue 3 years ago • 3 comments

Version: Parquet.Net v3.9.0

Runtime Version: .Net Core 3.1

OS: Windows

Expected behavior

Using DateTime type should work

Actual behavior

An exception is thrown because Parquet.Net tries to convert a DateTime to a DateTimeOffset:

! System.ArgumentException : expected System.DateTimeOffset but found System.DateTime

Steps to reproduce the behavior

Run the tests bellow.

Code snippet reproducing the behavior

      [Fact]
      public void Flat_add_valid_DateTime_row_succeeds()
      {
         var table = new Table(new Schema(new DataField<DateTime>("timestamp")));
         table.Add(new Row(DateTime.Now));
      }

coccor avatar Aug 25 '21 13:08 coccor

How on Earth is this still not fixed since 2021 August?

thekjohn avatar Mar 10 '22 12:03 thekjohn

This isn't the official Parquet.NET repo. See https://github.com/aloneguid/parquet-dotnet

markpattison avatar Mar 10 '22 14:03 markpattison

thank you!

thekjohn avatar Mar 10 '22 14:03 thekjohn