[GitHub] [spark] AngersZhuuuu commented on pull request #32001: [SPARK-34902][SQL] Support cast between LongType & DayTimeIntervalType and IntegerType & YearMonthIntervalType

2021-03-30 Thread GitBox
AngersZh commented on pull request #32001: URL: https://github.com/apache/spark/pull/32001#issuecomment-810723338 > @AngersZh Any thoughts about use cases? @cloud-fan I could imagine the use cases when we need to transfer/save/load intervals to external systems that don't support a

[GitHub] [spark] AngersZhuuuu commented on pull request #32001: [SPARK-34902][SQL] Support cast between LongType & DayTimeIntervalType and IntegerType & YearMonthIntervalType

2021-03-30 Thread GitBox
AngersZh commented on pull request #32001: URL: https://github.com/apache/spark/pull/32001#issuecomment-810814418 > 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, [NUMTODSIN

[GitHub] [spark] AngersZhuuuu commented on pull request #32001: [SPARK-34902][SQL] Support cast between LongType & DayTimeIntervalType and IntegerType & YearMonthIntervalType

2021-04-20 Thread GitBox
AngersZh commented on pull request #32001: URL: https://github.com/apache/spark/pull/32001#issuecomment-823172232 PG not support similar `cast` ![image](https://user-images.githubusercontent.com/46485123/115382928-cfd14000-a207-11eb-88e2-e74cdd7ee2f0.png) ![image](https://use

[GitHub] [spark] AngersZhuuuu commented on pull request #32001: [SPARK-34902][SQL] Support cast between LongType & DayTimeIntervalType and IntegerType & YearMonthIntervalType

2021-04-20 Thread GitBox
AngersZh commented on pull request #32001: URL: https://github.com/apache/spark/pull/32001#issuecomment-823356024 > @AngersZh thanks for looking into it! Shall we close this PR then? Sure, close it -- This is an automated message from the Apache Git Service. To respond to t

[GitHub] [spark] AngersZhuuuu commented on pull request #32001: [SPARK-34902][SQL] Support cast between LongType & DayTimeIntervalType and IntegerType & YearMonthIntervalType

2021-03-29 Thread GitBox
AngersZh commented on pull request #32001: URL: https://github.com/apache/spark/pull/32001#issuecomment-809928048 FYI @MaxGekk -- 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 c