-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
- Loading branch information
Showing
4 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
create table data (ts timestamp(3) time index, val double); | ||
|
||
Affected Rows: 0 | ||
|
||
insert into data values | ||
(0, 'infinity'::double), | ||
(1, '-infinity'::double), | ||
(2, 'nan'::double), | ||
(3, 'NaN'::double); | ||
|
||
Affected Rows: 4 | ||
|
||
select * from data; | ||
|
||
+-------------------------+------+ | ||
| ts | val | | ||
+-------------------------+------+ | ||
| 1970-01-01T00:00:00 | inf | | ||
| 1970-01-01T00:00:00.001 | -inf | | ||
| 1970-01-01T00:00:00.002 | NaN | | ||
| 1970-01-01T00:00:00.003 | NaN | | ||
+-------------------------+------+ | ||
|
||
insert into data values (4, 'infinityyyy'::double); | ||
|
||
Error: 3001(EngineExecuteQuery), Cast error: Cannot cast string 'infinityyyy' to value of Float64 type | ||
|
||
drop table data; | ||
|
||
Affected Rows: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
create table data (ts timestamp(3) time index, val double); | ||
|
||
insert into data values | ||
(0, 'infinity'::double), | ||
(1, '-infinity'::double), | ||
(2, 'nan'::double), | ||
(3, 'NaN'::double); | ||
|
||
select * from data; | ||
|
||
insert into data values (4, 'infinityyyy'::double); | ||
|
||
drop table data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters