Times are in nanosecond precision which I would like to retain.
What I would like to have in resulting table is exactly same time series as in Table1 and additionally interpolated values of temperature from Table2.

Table Result
time | data | temperature
2 | 1.0 | x
5 | 2.0 | x
7 | 4.0 | x

I’ve checked interpolate.linear, which unfortunately using fixed intervals. Also checked fill function, which doesn’t interpolate.

It means interpolate must divide series into sufficient granularity, so every point in from series “one” will find corresponding point in interpolated series. What will happen if there will be no matching point?
The actual data contains irregular timestamps in nanosecond resolution and it’s not clear what interval to specify interpolation. The smaller interval I specify, I guess the slower computations will go, but in any case there is no guarantee that matching point will be always found (if I understand solution correctly).