Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2025-04-18 Thread via GitHub
qstommyshu commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2812968577 Oh I see, thanks @Omega359 for sending the doc. Hope you don't mind me asking another question. I'm still wondering why we want DF to support operations like `select t

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2025-04-17 Thread via GitHub
Omega359 commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2813000882 Date parsing and date arithmetic is very common in some applications. using `to_date('1970-01-01') + 5` is just easier than `to_date('1970-01-01') + INTERVAL 5 days` or somethi

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2025-04-17 Thread via GitHub
Omega359 commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2812809389 > Ah, looks like datafusion doesn't even support this `to_date('1970-01-01', '-mm-dd');` in v46.0.1 Wrong format. See https://datafusion.apache.org/user-guide/sql/sc

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2025-04-16 Thread via GitHub
qstommyshu commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2811368679 Ah, looks like datafusion doesn't even support this `to_date('1970-01-01', '-mm-dd');` in v46.0.1 ```SQL > select to_date('1970-01-01', '-mm-dd'); Executi

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2024-12-12 Thread via GitHub
milevin commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2538336030 I put up a PR, but it's not perfect as I describe in its summary. Would love to get feedback and suggestions from the experts! -- This is an automated message from the Apache

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2024-12-09 Thread via GitHub
milevin commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2529530860 take -- 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. To un

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2024-12-09 Thread via GitHub
milevin commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2529504192 I'll take this one if no one objects. I'll use Snowflake's semantics as an approximation. -- This is an automated message from the Apache Git Service. To respond to the

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2024-11-27 Thread via GitHub
gnayus commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2505295586 Using intervals, both of the following work: select to_date('1970-01-01') + interval '5' day; select interval '5' day + to_date('1970-01-01'); Do we want to suppor

Re: [I] [BUG] Error when adding Date32 and Int64 [datafusion]

2024-09-05 Thread via GitHub
comphead commented on issue #12342: URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2332182699 > That is an odd thing for pg to support because the unit for the int is implied as it could just as well be months or years. I cannot find the standard right away, but f