MaxGekk commented on pull request #32001:
URL: https://github.com/apache/spark/pull/32001#issuecomment-810787472


   As @cloud-fan said we have special functions that convert numbers to 
timestamps. I quickly look at Oracle, it has similar function for intervals. 
For example, 
[NUMTODSINTERVAL](https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions117.htm#SQLRF00682)
 converts a `NUM` to a `DAY TO SECOND INTERVAL`:
   ```
   NUMTODSINTERVAL(100, 'day')
   ```
   @AngersZhuuuu Could you look at other DMBS, and see how they cast intervals 
from/to numbers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to