Skip to content

Commit f7e0ae7

Browse files
authored
fix(testdata): Don't use escaping in JSON testdata (as array.Approx will check the underlying data) (#898)
1 parent 5824d0a commit f7e0ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema/testdata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ func getExampleJSON(colName string, dataType arrow.DataType, opts GenTestDataOpt
319319
}
320320
if arrow.TypeEqual(dataType, types.ExtensionTypes.JSON) {
321321
if strings.HasSuffix(colName, "_array") {
322-
return `"[{\"test\":\"test\"},123,{\"test_number\":456}]"`
322+
return `[{"test":"test"},123,{"test_number":456}]`
323323
}
324-
return `"{\"test\":[\"a\",\"b\",3]}"`
324+
return `{"test":["a","b",3]}`
325325
}
326326
if arrow.TypeEqual(dataType, types.ExtensionTypes.Inet) {
327327
return `"192.0.2.0/24"`

0 commit comments

Comments
 (0)