Github user jihoonson commented on the pull request:
https://github.com/apache/tajo/pull/993#issuecomment-212263282
Here is another bug. The result of addition of ```timestamp``` or
```date``` with ```interval``` is invalid.
```
default> \set
...
'TIMEZONE'='Asia/Seoul'
...
default> \d test
table name: default.test
table uri: hdfs://localhost:7020/tajo/warehouse/default/test
store type: TEXT
number of rows: 1
volume: 52 B
Options:
'timezone'='Asia/Seoul'
'text.delimiter'='|'
schema:
t TIME
ts TIMESTAMP
d DATE
default> select ts from test;
ts
-------------------------------
2015-05-01 15:01:23
2016-05-01 16:02:33
(2 rows, 0.03 sec, 0 B selected)
default> select ts + interval '5' day from test;
day
-------------------------------
2015-05-01 15:01:23
2016-05-01 16:02:33
(2 rows, 0.02 sec, 0 B selected)
default> select d from test;
d
-------------------------------
2015-05-01
2016-05-01
(2 rows, 0.018 sec, 0 B selected)
default> select d + interval '5' day from test;
day
-------------------------------
2015-05-01 00:00:00
2016-05-01 00:00:00
(2 rows, 0.016 sec, 0 B selected)
default> select ts from test;
ts
-------------------------------
2015-05-01 15:01:23
2016-05-01 16:02:33
(2 rows, 0.018 sec, 0 B selected)
default> select ts - interval '5' day from test;
day
-------------------------------
2015-05-01 15:01:23
2016-05-01 16:02:33
(2 rows, 0.014 sec, 0 B selected)
default> select d from test;
d
-------------------------------
2015-05-01
2016-05-01
(2 rows, 0.027 sec, 0 B selected)
default> select d - interval '5' day from test;
day
-------------------------------
2015-05-01 00:00:00
2016-05-01 00:00:00
(2 rows, 0.017 sec, 0 B selected)
```
It is weird because tests for interval datum are already included.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---