@@ -4640,6 +4640,32 @@ TEST(TestTDigestReduceKernel, Basic) {
46404640 ResultWith (ScalarFromJSON (type,
46414641 " {\" mean\" :[1.5, 3.5, 5.5],\" weight\" :[2, 2, "
46424642 " 2],\" min\" :1.0,\" max\" :6.0,\" count\" :6}" )));
4643+
4644+ EXPECT_THAT (TDigestReduce (
4645+ ArrayFromJSON (
4646+ type,
4647+ " ["
4648+ " {\" mean\" :[],\" weight\" :[],\" min\" :null,\" max\" :null,\" count\" :0},"
4649+ " {\" mean\" :[1.5, 3.5, 5.5],\" weight\" :[2, 2, "
4650+ " 2],\" min\" :1.0,\" max\" :6.0,\" count\" :6}"
4651+ " ]" ),
4652+ options),
4653+ ResultWith (ScalarFromJSON (type,
4654+ " {\" mean\" :[1.5, 3.5, 5.5],\" weight\" :[2, 2, "
4655+ " 2],\" min\" :1.0,\" max\" :6.0,\" count\" :6}" )));
4656+
4657+ EXPECT_THAT (TDigestReduce (
4658+ ArrayFromJSON (
4659+ type,
4660+ " ["
4661+ " {\" mean\" :[1.5, 3.5, 5.5],\" weight\" :[2, 2, "
4662+ " 2],\" min\" :1.0,\" max\" :6.0,\" count\" :6},"
4663+ " {\" mean\" :[],\" weight\" :[],\" min\" :null,\" max\" :null,\" count\" :0}"
4664+ " ]" ),
4665+ options),
4666+ ResultWith (ScalarFromJSON (type,
4667+ " {\" mean\" :[1.5, 3.5, 5.5],\" weight\" :[2, "
4668+ " 2, 2],\" min\" :1.0,\" max\" :6.0,\" count\" :6}" )));
46434669}
46444670
46454671TEST (TestTDigestQuantileKernel, Basic) {
0 commit comments