Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-11 Thread via GitHub
matthewmturner commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2651906876 @Omega359 totally understood and appreciate the alternatives :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-11 Thread via GitHub
alamb commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2651879574 I agree -- fixing this issue seems reasonable to me. Thanks @Omega359 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to Gi

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-10 Thread via GitHub
Omega359 commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2648671927 > I had the impression (although perhaps it is dated) that datafusion sought to be compatible with postgres to the extent reasonable. Assuming thats still the case is there a r

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-09 Thread via GitHub
matthewmturner commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2646783166 I had the impression (although perhaps it is dated) that datafusion sought to be compatible with postgres to the extent reasonable. Assuming thats still the case is ther

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-09 Thread via GitHub
xudong963 commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2646775055 > [@xudong963](https://github.com/xudong963) maybe we should make the error message better? Yes, this is a good point -- This is an automated message from the Apache

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-07 Thread via GitHub
alamb commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2643690203 @xudong963 maybe we should make the error message better? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-07 Thread via GitHub
Omega359 commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2642764287 If you cast the date to a timestamp that would work, but the syntax you provided would not match a date and thus it'll throw the format error. Any of the following would work:

Re: [I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-07 Thread via GitHub
xudong963 commented on issue #14536: URL: https://github.com/apache/datafusion/issues/14536#issuecomment-2642509561 FYI, Postgres supports this, so I think it's a feature. **Schema (PostgreSQL v17)** --- SELECT TO_CHAR('2023-09-04'::date, '-MM-DD"T

[I] Question: `to_char(date, timstamp format)` [datafusion]

2025-02-06 Thread via GitHub
xudong963 opened a new issue, #14536: URL: https://github.com/apache/datafusion/issues/14536 It seems that we don't support ``` > select to_char('2023-09-04'::date, '%Y-%m-%dT%H:%M:%S%.3f'); Execution error: Cast error: Format error ``` I want to ensure if this is an unsupport