Skip to content

Commit f599ca2

Browse files
committed
merge.
1 parent 0560602 commit f599ca2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1010,11 +1010,11 @@ protected Func<bool> GetColumnComparer(IRow r1, IRow r2, int col, ColumnType typ
10101010
case DataKind.Bool:
10111011
return GetComparerOne<DvBool>(r1, r2, col, (x, y) => x.Equals(y));
10121012
case DataKind.TimeSpan:
1013-
return GetComparerOne<DvTimeSpan>(r1, r2, col, (x, y) => x.Equals(y));
1013+
return GetComparerOne<TimeSpan>(r1, r2, col, (x, y) => x == y);
10141014
case DataKind.DT:
1015-
return GetComparerOne<DvDateTime>(r1, r2, col, (x, y) => x.Equals(y));
1015+
return GetComparerOne<DateTime>(r1, r2, col, (x, y) => x == y);
10161016
case DataKind.DZ:
1017-
return GetComparerOne<DvDateTimeZone>(r1, r2, col, (x, y) => x.Equals(y));
1017+
return GetComparerOne<DateTimeOffset>(r1, r2, col, (x, y) => x.Equals(y));
10181018
case DataKind.UG:
10191019
return GetComparerOne<UInt128>(r1, r2, col, (x, y) => x.Equals(y));
10201020
case (DataKind)0:
@@ -1056,11 +1056,11 @@ protected Func<bool> GetColumnComparer(IRow r1, IRow r2, int col, ColumnType typ
10561056
case DataKind.Bool:
10571057
return GetComparerVec<DvBool>(r1, r2, col, size, (x, y) => x.Equals(y));
10581058
case DataKind.TimeSpan:
1059-
return GetComparerVec<DvTimeSpan>(r1, r2, col, size, (x, y) => x.Equals(y));
1059+
return GetComparerVec<TimeSpan>(r1, r2, col, size, (x, y) => x == y);
10601060
case DataKind.DT:
1061-
return GetComparerVec<DvDateTime>(r1, r2, col, size, (x, y) => x.Equals(y));
1061+
return GetComparerVec<DateTime>(r1, r2, col, size, (x, y) => x == y);
10621062
case DataKind.DZ:
1063-
return GetComparerVec<DvDateTimeZone>(r1, r2, col, size, (x, y) => x.Equals(y));
1063+
return GetComparerVec<DateTimeOffset>(r1, r2, col, size, (x, y) => x.Equals(y));
10641064
case DataKind.UG:
10651065
return GetComparerVec<UInt128>(r1, r2, col, size, (x, y) => x.Equals(y));
10661066
}

0 commit comments

Comments
 (0)