alamb commented on issue #6720:
URL: 
https://github.com/apache/arrow-datafusion/issues/6720#issuecomment-1597289410

   However, note the current datafusion behavior is consistent with postgres as 
explained by @waitingkuo  in 
https://github.com/apache/arrow-datafusion/pull/6698#pullrequestreview-1485187142:
   
   -------
   
   
   looks good to me, thanks.
   
   in postgrseql
   ```bash
   select -interval '5' - '1' - '2';
   ```
   is intepreted as 
   ```bash
   select (-interval '5') - '1' - '2';
   ```
   ```bash
   willy=# select -interval '5' - '1' - '2';
    ?column?  
   -----------
    -00:00:08
   (1 row)
   ```
   note that `select -interval '5' - '1' - '2' hour` doesn't work in postgresql
   ```bash
   willy=# select -interval '5' - '1' - '2' hour;
   ERROR:  syntax error at or near "hour"
   LINE 1: select -interval '5' - '1' - '2' hour;
   ```
   
   


-- 
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 unsubscribe, e-mail: [email protected]

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

Reply via email to