Skip to content

Commit 2762d7a

Browse files
committed
rowenc: unskip JSON in TestEncDatumCompare
We introduced the key-encoding of JSONs some time ago, so we no longer need to skip this type in `TestEncDatumCompare`. Release note: None
1 parent 7a7aab5 commit 2762d7a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/sql/rowenc/encoded_datum_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,14 @@ func TestEncDatumCompare(t *testing.T) {
215215

216216
for _, typ := range types.OidToType {
217217
switch typ.Family() {
218-
case types.AnyFamily, types.UnknownFamily, types.ArrayFamily, types.JsonFamily, types.TupleFamily, types.VoidFamily,
219-
types.TSQueryFamily, types.TSVectorFamily, types.PGVectorFamily, types.TriggerFamily, types.JsonpathFamily:
218+
case types.AnyFamily, types.UnknownFamily, types.ArrayFamily,
219+
types.TupleFamily, types.TSQueryFamily, types.TSVectorFamily,
220+
types.PGVectorFamily, types.TriggerFamily, types.JsonpathFamily:
221+
// These types don't have key-encoding.
222+
continue
223+
case types.VoidFamily:
224+
// There is no point in testing VOID type as it only supports a
225+
// single value.
220226
continue
221227
case types.LTreeFamily:
222228
// TODO(paulniziolek): Temporarily skip LTrees as they are

0 commit comments

Comments
 (0)