[CALCITE-7410] TIMESTAMP type for TUMBLE and HOP is hardwired to TIMESTAMP(3)#4799
[CALCITE-7410] TIMESTAMP type for TUMBLE and HOP is hardwired to TIMESTAMP(3)#4799mihaibudiu merged 1 commit intoapache:mainfrom
Conversation
fdf0b1f to
65142b1
Compare
|
#2176 is a reverse operation, and I don't quite understand this part. I'd like to ask if a default value is needed to determine the precision? And should different systems configure this themselves? |
|
I will try to rework the PR to actually preserve explicitly the type of the original timestamp column. That's a better solution. I thought that this is what my PR does... but perhaps it's not. |
65142b1 to
087b496
Compare
|
@xiedeyantu thank you for pointing out the previous PR. I think that the approach in this PR's second commit is better. (My previous version was indeed just reverting it). I retrieve the original timestamp column and I preserve it's precision. I think this is the approach proposed by @julianhyde in the original issue, which wasn't actually correctly implemented. |
xiedeyantu
left a comment
There was a problem hiding this comment.
This version looks much better, and I don’t have any further questions. We can also see if others have any.
|
I will squash the commits but wait a bit to see if there are other comments. |
087b496 to
5c1eb8b
Compare
|
This is actually a breaking change, I wonder whether I should make it at all. I think that the existing implementation is wrong, though. |
|
@danny0405 do you have any comments about this PR? It modifies the changes you made in your PR. |
|
I documented this as a breaking change. We can take it, or we can skip it. Let's see if other users have comments. |
634e3c6 to
2951f5f
Compare
…STAMP(3) Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
2951f5f to
c7da471
Compare
|
|
Many days have passed without any additional comments, so it feels like we can merge them now. |
|
Ok, I will do it. I just squashed the commits today. |



https://issues.apache.org/jira/browse/CALCITE-7410
Given the way Calcite implements TIMESTAMPS in the runtime (representing them as an integer number of milliseconds), it's virtually impossible to write a test that proves that this fix allows computation on microseconds. However, our runtime does support microseconds, and I have used it to test that this change indeed works for higher precision timestamps.