Skip to content

Commit caf047f

Browse files
Test Parquet sink
1 parent 8eab0a9 commit caf047f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetDataCol.cs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public ParquetDataCol(string name, Type coltype)
3333
{
3434
ColumnName = name;
3535
ColumnType = coltype;
36+
3637
if (coltype != System.Type.Missing.GetType())
3738
{
3839
ParquetDataType = MapDataType(name, coltype);

Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetFormatWriter.cs

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ private void ProcessColumns(IDataItem item, long row)
4242
{
4343
coltype = colval.GetType();
4444
}
45+
if (col == "Timestamp" && coltype == typeof(DateTimeOffset))
46+
{
47+
continue;
48+
}
4549
if (current == null)
4650
{
4751
var newcol = new ParquetDataCol(col, coltype);

0 commit comments

Comments
 (0)