MaxGekk commented on issue #26034: [SPARK-29364][SQL] Return an interval from 
date subtract according to SQL standard
URL: https://github.com/apache/spark/pull/26034#issuecomment-538693816
 
 
   > Is there a reason why you aim to use this as a default SPARK dialect?
   
   Because PostgreSQL returns integers for date subtracts:
   ```sql
   # select pg_typeof(date'2019-10-05' - date'1970-01-01');
    pg_typeof 
   -----------
    integer
   (1 row)
   ``` 
   I don't know how I can use the PostgreSQL dialect for this behavior.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to