Skip to content

Commit 155f26c

Browse files
authored
Merge pull request #3 from questdb/rd_decimal
2 parents 0a9c092 + 1aaa3f9 commit 155f26c

File tree

1 file changed

+52
-7
lines changed

1 file changed

+52
-7
lines changed

ilp-client-interop-test.json

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
],
3333
"result": {
3434
"status": "SUCCESS",
35+
"binaryBase64": "dGVzdF90YWJsZSxzeW1fY29sPXN5bV92YWwgc3RyX2NvbD0iZm9vIGJhciBiYXoiLGxvbmdfY29sPTQyaSxkb3VibGVfY29sPT0QAAAAAABARUAsYm9vbF9jb2w9dAo=",
3536
"line": "test_table,sym_col=sym_val str_col=\"foo bar baz\",long_col=42i,double_col=42.5,bool_col=t"
3637
}
3738
},
@@ -73,6 +74,7 @@
7374
],
7475
"result": {
7576
"status": "SUCCESS",
77+
"binaryBase64": "ZG91YmxlcyBkMD09EAAAAAAAAAAALGRtMD09EAAAAAAAAACALGQxPT0QAAAAAAAA8D8sZEUxMDA9PRB9w5QlrUmyVCxkMDAwMDAwMT09EI3ttaD3xrA+LGROMDAwMDAwMT09EI3ttaD3xrC+Cg==",
7678
"anyLines": [
7779
"doubles d0=0,dm0=-0,d1=1,dE100=1E+100,d0000001=1E-06,dN0000001=-1E-06",
7880
"doubles d0=0.0,dm0=-0.0,d1=1.0,dE100=1e100,d0000001=1e-6,dN0000001=-1e-6",
@@ -1639,15 +1641,58 @@
16391641
"testName": "quote in symbol value",
16401642
"table": "quote",
16411643
"symbols": [
1642-
{
1643-
"name": "sym",
1644-
"value": "\"val\""
1645-
}
1644+
{
1645+
"name": "sym",
1646+
"value": "\"val\""
1647+
}
16461648
],
16471649
"columns": [],
16481650
"result": {
1649-
"status": "SUCCESS",
1650-
"line": "quote,sym=\"val\""
1651+
"status": "SUCCESS",
1652+
"line": "quote,sym=\"val\""
1653+
}
1654+
},
1655+
{
1656+
"testName": "decimal",
1657+
"minimumProtocolVersion": 3,
1658+
"table": "decimals",
1659+
"symbols": [],
1660+
"columns": [
1661+
{
1662+
"type": "DECIMAL",
1663+
"name": "zero",
1664+
"value": "0.0"
1665+
},
1666+
{
1667+
"type": "DECIMAL",
1668+
"name": "neg_zero",
1669+
"value": "-0.0"
1670+
},
1671+
{
1672+
"type": "DECIMAL",
1673+
"name": "one",
1674+
"value": "1.0"
1675+
},
1676+
{
1677+
"type": "DECIMAL",
1678+
"name": "large",
1679+
"value": "99999999999999.999"
1680+
},
1681+
{
1682+
"type": "DECIMAL",
1683+
"name": "small",
1684+
"value": "0.001"
1685+
},
1686+
{
1687+
"type": "DECIMAL",
1688+
"name": "neg_small",
1689+
"value": "-0.001"
1690+
}
1691+
],
1692+
"result": {
1693+
"status": "SUCCESS",
1694+
"line": "decimals zero=0d,neg_zero=0d,one=1.0d,large=99999999999999.999d,small=0.001d,neg_small=-0.001d",
1695+
"binaryBase64": "ZGVjaW1hbHMgemVybz09FwEBACxuZWdfemVybz09FwEBACxvbmU9PRcBAQosbGFyZ2U9PRcDCAFjRXhdif//LHNtYWxsPT0XAwEBLG5lZ19zbWFsbD09FwMB/wo="
16511696
}
16521697
}
1653-
]
1698+
]

0 commit comments

Comments
 (0)