parquet-dotnet
parquet-dotnet copied to clipboard
Expected System.DateTimeOffset but found System.DateTime
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));
}
How on Earth is this still not fixed since 2021 August?
This isn't the official Parquet.NET repo. See https://github.com/aloneguid/parquet-dotnet
thank you!