Skip to content

Commit 54d515a

Browse files
committed
Implement KQL functional tests
1 parent f0cc9bb commit 54d515a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/queries/0_stateless/02366_kql_datatype.reference

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ inf
3232
86400
3333
-86400
3434
6e-9
35+
6e-7
3536
-- guid
3637
\N
3738
-- timespan (time)
@@ -42,6 +43,7 @@ inf
4243
0.1
4344
0.1
4445
0.00001
46+
1e-7
4547
3
4648
1120343
4749
-- null
@@ -91,6 +93,7 @@ true
9193
-- make_timespan()
9294
01:12:00 01:12:30 1.12:30:55
9395
-- totimespan()
96+
1e-7
9497
60
9598
\N
9699
1120343

tests/queries/0_stateless/02366_kql_datatype.sql

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ print time('12:30:55.123');
3737
print time(1d);
3838
print time(-1d);
3939
print time(6nanoseconds);
40-
-- print time(6tick); == 6e-7
40+
print time(6tick);
4141
print '-- guid'
4242
print guid(74be27de-1e4e-49d9-b579-fe0b331d3642);
4343
print guid(null);
@@ -49,7 +49,7 @@ print timespan(10s); -- 10 seconds
4949
print timespan(0.1s); -- 0.1 second
5050
print timespan(100ms); -- 100 millisecond
5151
print timespan(10microsecond); -- 10 microseconds
52-
-- print timespan(1tick); -- 100 nanoseconds -> 1e-7
52+
print timespan(1tick); -- 100 nanoseconds
5353
print timespan(1.5h) / timespan(30m);
5454
print timespan('12.23:12:23') / timespan(1s);
5555
print '-- null';
@@ -100,6 +100,7 @@ print todatetime('abc') == null;
100100
print '-- make_timespan()';
101101
print v1=make_timespan(1,12), v2=make_timespan(1,12,30), v3=make_timespan(1,12,30,55.123);
102102
print '-- totimespan()';
103+
print totimespan(1tick);
103104
print totimespan('0.00:01:00');
104105
print totimespan('abc');
105106
print totimespan('12.23:12:23') / totimespan(1s);

0 commit comments

Comments
 (0)