Skip to content

Commit de75f60

Browse files
committed
tests
1 parent de8c232 commit de75f60

File tree

1 file changed

+81
-0
lines changed
  • x-pack/plugin/esql/qa/testFixtures/src/main/resources

1 file changed

+81
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/math.csv-spec

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,3 +1702,84 @@ emp_no:integer | l1:double | l2:double
17021702
10002 | -7.23 | null
17031703
10003 | 4.0 | null
17041704
;
1705+
1706+
copySignOfPositiveToPositive
1707+
ROW magnitude = 50.0, sign = 3.3
1708+
| EVAL result = COPY_SIGN(magnitude, sign)
1709+
;
1710+
1711+
magnitude:double | sign:double | result:double
1712+
50.0 | 3.3 | 50.0
1713+
;
1714+
1715+
copySignOfPositiveToNegative
1716+
ROW magnitude = 5.2, sign = -9.0
1717+
| EVAL result = COPY_SIGN(magnitude, sign)
1718+
;
1719+
1720+
magnitude:double | sign:double | result:double
1721+
5.2 | -9.0 | -5.2
1722+
;
1723+
1724+
copySignOfNegativeToPositive
1725+
ROW magnitude = -5.12, sign = 3.0
1726+
| EVAL result = COPY_SIGN(magnitude, sign)
1727+
;
1728+
1729+
magnitude:double | sign:double | result:double
1730+
-5.12 | 3.0 | 5.12
1731+
;
1732+
1733+
copySignOfNegativeToNegative
1734+
ROW magnitude = -12.0, sign = -800.0
1735+
| EVAL result = COPY_SIGN(magnitude, sign)
1736+
;
1737+
1738+
magnitude:double | sign:double | result:double
1739+
-12.0 | -800.0 | -12.0
1740+
;
1741+
1742+
copySignOfZeroToPositive
1743+
ROW magnitude = 0.0, sign = 3.0
1744+
| EVAL result = COPY_SIGN(magnitude, sign)
1745+
;
1746+
1747+
magnitude:double | sign:double | result:double
1748+
0.0 | 3.0 | 0
1749+
;
1750+
1751+
copySignOfZeroToNegative
1752+
ROW magnitude = 0.0, sign = -1.0
1753+
| EVAL result = COPY_SIGN(magnitude, sign)
1754+
;
1755+
1756+
magnitude:double | sign:double | result:double
1757+
0.0 | -1.0 | -0.0
1758+
;
1759+
1760+
copySignOfIntegerDouble
1761+
ROW magnitude = 11, sign = -7.111
1762+
| EVAL result = COPY_SIGN(magnitude, sign)
1763+
;
1764+
1765+
magnitude:integer | sign:double | result:double
1766+
11 | -7.111 | -11.0
1767+
;
1768+
1769+
copySignOfDoubleInteger
1770+
ROW magnitude = 23.1234, sign = 11
1771+
| EVAL result = COPY_SIGN(magnitude, sign)
1772+
;
1773+
1774+
magnitude:double | sign:integer | result:double
1775+
23.1234 | 11 | 23.1234
1776+
;
1777+
1778+
copySignOfULDouble
1779+
ROW magnitude = 9223372036854775808, sign = -11.2
1780+
| EVAL result = COPY_SIGN(magnitude, sign)
1781+
;
1782+
1783+
magnitude:unsigned_long | sign:double | result:double
1784+
9223372036854775808 | -11.2 | -9223372036854775808
1785+
;

0 commit comments

Comments
 (0)