You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all fields and properties of TRow must be present in the file for Row-based reader to work.
Often row properties are computed, unfilled or otherwise do not needs to be read from the file. We need a way to mark the type so that those members are not deserialized from file.
Proposal:
Add IgnoreColumn attribute to mark columns that must be skipped, such as:
struct MyRow
{[IgnoreColumn]publicDateTimeCurrentDate=> DateTime.Now;[MapToColumn("ColumnB")]publicstringMyValue;}
using varreader= ParquetFile.CreateRowReader<MyRow>("example.parquet");
...
Alternatively, make reader and writer symmetrical, and allow reader to be customied with list of columns, such as below. Note that the columns are names of members in the class, not in the file. This will allow to set a subset of members in the type.
Currently, all fields and properties of TRow must be present in the file for Row-based reader to work.
Often row properties are computed, unfilled or otherwise do not needs to be read from the file. We need a way to mark the type so that those members are not deserialized from file.
Proposal:
Add IgnoreColumn attribute to mark columns that must be skipped, such as:
Alternatively, make reader and writer symmetrical, and allow reader to be customied with list of columns, such as below. Note that the columns are names of members in the class, not in the file. This will allow to set a subset of members in the type.
The text was updated successfully, but these errors were encountered: